Number Pyramid
CodeChefOpen on judge ↗
Identify the logic used to generate the series 9,48,117,216,345,504. . . Use this logic to generate a pyramid. The base of the pyramid should be the widest, converging towards the top. The top will have only one element. Each layer of the pyramid will have one element less than the layer underneath it. The input is N, which is the number of elements in the last layer. Example If N=2, the outp
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start