Heights
CodeChefOpen on judge ↗
In a morning assembly line in Hogwarts, N students of house Slytherin stood in an unordered line in a random manner (in terms of their heights) with each student having unique positive height. There is a boy named "Longbottom" who is very mischievious. Professor McGonagall assigned Harry a task to keep an eye on "Longbottom". All students were then arranged in the increasing order of their height
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