← All problemsSign in

CODERS HEIGHT

In Sona College Of Technology, $N$ number of Students are very interested to participate in the coding event. They are standing in a queue $H[1],H[2],….,H[N]$ for the registration. Organizers chooses two students depends upon the following condition for getting a chance of easy questions in that event. They order the students based on their height and pick the first and last student from the qu

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