Minimum Platforms
CodeChefOpen on judge ↗
Indian Railways plans to optimize their platform management by simulating train arrivals and departures at their busiest station. You are given two arrays $AT$ (Arrival Times) and $DT$ (Departure Times) of length $n$, where $AT[i]$ and $DT[i]$ represent the arrival and departure times of the $i^{th}$ train. Your task is to find the minimum number of platforms needed at the railway station to acco
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