← Questions

Fewest rental cars for a set of reservations

0
GoogleCodingLast asked Aug 2026

Each rental reservation has a start time and an end time. Find the fewest cars that can serve every reservation, and assign each reservation to a car.

Follow-ups from other reports: which car ends up rented the most, and the same allocation asked in a round that also covered shortest paths.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding