Cody

Problem 45491. cross-section of 3D pyramid

Create 3d pyramid of ones and zeros...where pyramid-part is denoted by ones and outer-part is denoted by zeros..where base is square-shaped.. now show the the CROSS-SECTION of the pyramid on the XZ plane...input n is the side of the square base of the pyramid..

    input= 3  output= 0 1 0
                      1 1 1

Solution Stats

34.62% Correct | 65.38% Incorrect
Last Solution submitted on Jun 04, 2020

Problem Comments

Problem Recent Solvers9

Suggested Problems

More from this Author2