LeetCode 1094. Car Pooling – Given trips[i] = [numPassengers, start, end] and an integer capacity, return true if the vehicle can fulfill all trips without exceeding capacity at any point; otherwise return false.
https://leetcode.com/problems/car-pooling/description/
Sign in to leave a comment