You are given a capacity of a vehicle and a list of trips where trips[i] = [num_passengers_i, start_i, end_i]. Return true if and only if it is possible to take all passengers for all given trips.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.