Challenge: Find the Minimum Platforms Required for a Station
Calculate the minimum number of platforms required at a train station based on the trains' arrival and departure times.
We'll cover the following
Problem statement
Implement a function that returns the minimum number of platforms required for the train so that none of them wait.
Input
Two arrays that represent the arrival and departure times of trains that stop.
Output
The minimum number of platforms required.
Sample input
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.