Tower of HanoiCake
CodeChefOpen on judge ↗
Chef Polo has recently been observing the structure of Tower of Hanoi. So he decides to build his own tower and names it as Tower of HanoiCake. He decides to build it using circular pancakes. To build his tower he has to arrange them vertically, one upon another. He knows that if he places a pancake of radius r1 above pancake of radius r2 such that r1 >= r2, the whole tower will shake and pan
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