← back to unit
Medium
# breaking it down medium
Parking Lot Day
Cars come, cars go — the owner wants ONE number: the fullest the lot ever got. 🅿️
You get the day's events (in / out, starting from an empty lot, always valid). Print the maximum number of cars parked at once.
Example:
Input: events = ["in", "in", "out", "in", "in"]
Output: 3
The count climbs 1, 2, 1, 2, 3 — the fullest the lot ever got was 3 cars.
💡 need a hint?
brk-parking-lot.py🔒 given lines are locked — write your code in between
loading...