Head over meals
CodeChefOpen on judge ↗
Adam, an Adasaurus, works for a dish washing company. He comes across a pile consisting of N plates with a number tag each placed one on top of the other. He wishes to arrange the plates in the increasing order of the tag number. Though a plate can be pulled out of the stand, but it can only be returned to the top of the pile. Therefore, he can only sort the plates by repeatedly pulling out a plat
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