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
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Mid May, 2025
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.