Greedy Algorithms - Minimum Platforms (Train Stations)
Given the following code snippet implementing the min-heap approach for minimum platforms, what is the output for arrivals = [900, 940, 950, 1100, 1500, 1800] and departures = [910, 1200, 1120, 1130, 1900, 2000]?
