← All problemsSign in

Tom Pyramid Structure

Tom has some wine glasses and he arranges them in a pyramid structure such that the number of glasses in one row is equal to the row number. Each glass holds one cup(240ml) of liquid. So now Tom starts pouring from the top glass at the rate of one cup per second which is 240ml in one second. As soon as the first glass is full the excess liquid flows out into the lower glasses and starts filling th

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start