← Questions

Is a vehicle ready to go after its maintenance events?

0
WaymoCodingLast asked Sep 2026

A vehicle can leave only when all its maintenance work is closed. Its log is a list of events: each opens a maintenance task of some type or ends the open task of that type. Decide whether the vehicle is ready to go, and handle ends with no matching open and tasks that are opened twice.

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