← All problemsSign in

Airport Management

CodeChefRating 1201Open on judge ↗

Chef is building an Airport in Chefland. There are $N$ airplanes such that the $i^{th}$ airplane arrives at the $A_i$-th minute and departs at the $D_i$-th minute. Find the **minimum** number of runways required at the airport so that all the arrivals and departures can occur smoothly. **Note:** - Arrival and departure timings are given in minutes after midnight. - A plane uses the runway on

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