Holi Sort
CodeChefOpen on judge ↗
Holi, the festival of colours is on the way and the Ved family has already started its preparation. Smit, the elder brother has bought a box of N water guns each of distinct cost for his family. Each water gun has its cost printed on it. He keeps the guns randomly on a table, all aligned together. Smit is given the task to sort the guns according to their cost in ascending order. But he is too laz
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