Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
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.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.