Available question text
Given a list of passenger boarding/alighting records that specify bus id, start and end stops, and counts, compute how many passengers are on each bus (or at each stop) after processing all events—requiring efficient range updates/queries (use difference arrays or sweep-line) to handle many overlapping boarding ranges.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2142. The Number of Passengers in Each Bus I
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source