Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1204. Last Person to Fit in the Bus
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).
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.