← Paytm questions
CodingReported in a candidate post, Jul 2025

Minimum number of platforms for trains

Filed under Paytm

Given the arrival and departure times of n trains, find the minimum number of platforms needed so that no train waits. A train arriving at the same time another departs needs its own platform.

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 Paytm questions

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