InterviewDB Question

Lane Control OOD: Multi-Lane Traffic Management System

Question Details

Problem Design a LaneController for a highway with n lanes. Vehicles enter and exit lanes. Each lane has a capacity. Support queries for the lane with the most available space, merging two adjacent lanes, and reporting congestion alerts when any lane exceeds 80% capacity. Follow-ups How does a priority queue help with most_available_lane if lanes update frequently? How do you handle merge_lanes when vehicles must be redistributed? How would you make this thread-safe for concurrent highway simula…

Full Details

🔒

Unlock all Zoox questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a reported interview question from a zoox interview during the phone round.

It covers the following topics: Coding, Queue, Ood, Phone .