Parking tickets record each car's entry and exit time. Report how many cars are in the garage at every timestamp — first in O(N²), then in O(N). A Waymo phone screen.
Parking tickets record each car's entry and exit time. Report how many cars are in the garage at every timestamp — first in O(N²), then in O(N). A Waymo phone screen.
The discussion opens with the full question.