← All problemsSign in

Precious Pots of LPU

The most playable game in LPU is Cricket. Anirudddha and Harjinder are playing cricket. While playing they broke M flower pots and now they are afraid of being caught by the security guards which might cancel their scholarship. Each flower pot is assigned a unique number. You have to arrange the pots in such a manner that the broken pots are placed in the end. Help them to arrange the pots. $Cons

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