Search
⌘K

Leetcode 2361. Minimum Costs Using the Train Line

Compute the minimum cost to travel along a train line from a start to a destination given stations, scheduled departures, and multiple fare/ticket options (including transfers and time-limited passes); the core challenge is modeling time-dependent fares and ticket validity as augmented graph states and finding a shortest-path/DP solution over that state space.

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late February, 2026

Meta

Mid-level

Given arrival[] and departure[] times, find the minimum number of platforms required so no train waits.

Your account is free and you can post anonymously if you choose.