← Salesforce questions

Minimum platforms for arriving and departing trains

Filed under Salesforce

Given arrays of train arrival times and departure times, find the minimum number of platforms required so that no train has to wait. A train that arrives at the same time another departs needs a…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Salesforce questions

Collected from public candidate posts and coding forums. Updated Nov 2026.