Problem 45488. Height of a 3D Pyramid
If a pyramid is made with one(1). What will be the height of the pyramid of square shaped base(n*n)? where input is n.
Solution Stats
Problem Comments
-
1 Comment
I finally understood the problem by looking at other problems by the author. He is imagining an abstract pyramid made by square matrices of ones that descrease evenly until the top is reached. For instance a squared based pyramid of 19 would make height 10, because its layers are ones(19), ones(17), ones(15), ones(13), ones(11), ones(9), ones(7), ones(5), ones(3), ones(1).
Solution Comments
Show commentsProblem Recent Solvers44
Suggested Problems
-
6434 Solvers
-
Find the maximum number of decimal places in a set of numbers
3367 Solvers
-
Find the position of first minimum value in an integer array with numbers
183 Solvers
-
Write a code that will follow the equation y = x * (x + x) * x.
356 Solvers
-
226 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!