Minimum Number of Platforms
Medium
Greedy (Advanced)
Given the arrival and departure times (as HHMM integers) of trains at a station, print the minimum number of platforms needed so that no train waits. A train arriving exactly when another departs needs its own platform.
Constraints
1 <= n <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.