Available question text
Order the people by their turn and compute a running total of weights, then return the person_name of the last person whose addition keeps the cumulative weight ≤ 1000 (stop before exceeding the limit).
Related questions
Continue with questions that share topics or the same question type.
- Array Prototype Last
Coding
- Bikes Last Time Used
Coding
- Bus Routes
Coding · Array · Breadth-First Search · Hash Table
- Count Substrings Divisible By Last Digit
Coding
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 1204. Last Person to Fit in the Bus
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source