Concept Flow - Minimum Number of Platforms
Sort arrival times
Sort departure times
Initialize pointers i=0, j=0
While i < n and j < n
If arrival[i
Increment platforms needed
Move i to next arrival
Update max platforms
Back to While
Else
Decrement platforms needed
Move j to next departure
Back to While
Return max platforms needed
↩Back to While
Sort arrival and departure times, then use two pointers to count platforms needed by comparing arrivals and departures.
