Platforms needed

arrivals and departures list, for each train, when it arrives and when it leaves; a platform freed at time t cannot be reused by a train arriving at t. Write min_platforms(arrivals, departures) that returns the fewest platforms so no train waits.

min_platforms([900, 940, 950, 1100, 1500, 1800], [910, 1200, 1120, 1130, 1900, 2000])  ->  3
min_platforms([100], [200])  ->  1

The point is to practise the "sort events and sweep" technique: the answer is the maximum number of trains present at once.

def min_platforms(arrivals, departures):
    ...