Samsung Electronics Hiring Challenge | On-Campus OA (2021)
Question · Posted Jun 2026
Minimum Number of Platforms Required Problem Statement Given the arrival and departure times of trains at a railway station, determine the minimum number of platforms required so that no train has to wait. A platform is occupied from the arrival time of a train until its departure time. Example Input arrival = [900,940,950,1100,1500,1800] departure = [910,1200,1120,1130,1900,2000] Output 3
The full answer & interview discussion are available to premium members.
Log in Create a free account