Dr Phil goes to the ranch
CodeChefOpen on judge ↗
Dr. Phil has put you in charge of his new hospital while he is chilling at the ranch. $N$ people have booked appointment with the Doctor today numbered from $1$ to $N$ such that person $X$ booked appointment before person $Y$ if $X < Y$. Now, the people do not necessarily arrive at the hospital on time, so you decide of an unusual way of handling the situation. At the start you fulfill the app
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