← All problemsSign in

Piyush Arranges Flower Pots

Piyush is a passionate gardener and has a very big garden at his home. There are N flower pots in his garden arranged in a single queue which are numbered N1, N2, N3, N4…Now, Piyush wants to arrange these flowerpots in an ascending order on the same queue on the basis of the numbers on them. But then he realized he is gaining weight and decided to use this flowerpot arrangement task as a workout.

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