Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1094. Car Pooling
Given trips as [numPassengers, from, to] on a one-way (eastbound) route, determine if the vehicle's passenger count ever exceeds capacity while picking up and dropping off riders. This is a sweep-line/difference-array problem: treat pickups and dropoffs as events, accumulate the current load along the route, and verify it never surpasses capacity.
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early November, 2025
Meta
Mid-level
Early June, 2025
Meta
Mid-level
Mid April, 2025
Meta
Mid-level
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.