Search
⌘K

Leetcode 2153. The Number of Passengers in Each Bus II

Given many boarding and alighting events across stops for multiple buses, compute the passenger count for each bus (or at each stop) after all events; the core challenge is efficiently applying overlapping interval/range updates and answering per-bus queries under large input sizes using techniques like sweep-line, coordinate compression, and Fenwick/segment trees.


Question Timeline

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

Comments

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