Search
⌘K

Leetcode 1279. Traffic Light Controlled Intersection

Given arrival times/orders of cars and a traffic light that cycles through states, simulate the intersection to determine which cars can pass (and when) under the light's timing constraints. This is an easy event-driven simulation/queueing problem that tests correct handling of timing, ordering, and light state transitions.

Asked at:

Google

Google


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid May, 2025

Google

Google

Senior

Comments

Your account is free and you can post anonymously if you choose.