Chef and The Martians
CodeChefOpen on judge ↗
Chef and The Martians Martians build their houses in triangular shapes. They have a tradition that for every new generation, new row of such triangular houses are built joining the previous generation houses as in figure ( assume that number of newly built houses exactly follows the triangular pattern). In this pattern, the people of mars develop colonies. Chef saw an overview NASA overview phot
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