← All problemsSign in

Shouvik Mitra & N Boxes

Mr. Shouvik Mitra has $N$ boxes $1, 2, 3….N$ The $I$-th box has a height of $Hi$. He needs your help to arrange the boxes in decreasing order of heights. ###Input: - First-line will contain single integer $N$, the number of boxes. - Second line: $N$ space-separated heights of boxes. ###Output: Print a single line containing $N$ space-separated integers ― the height of boxes in decreasing order

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