Parking limiter elevator hub

Hub — parking, limiter, elevator

Practice hub for parking lot, in-memory rate limiter, and elevator — order to drill, concurrency callouts, and links into each complete-solution section.

How to read these walkthroughs

011 · Spec

In / out of scope

022 · Model

Who owns rules

033 · API

User verbs

044 · Trace

Happy + fail + race

Each deep dive matches a strong ~35-minute talk track. Use the delivery framework.

Concurrency callouts

Order to practice

Treat this hub as a practice queue, not reading material. For parking / rate limiter / elevator: timer on, phone away, talk out loud.

  1. Day 1 — Parking lot: enter/exit + fee in cents; reject full lot. Complete solution.
  2. Day 2 — Rate limiter: Token Bucket allow/deny with one key; mention Sliding Log trade-off. Complete solution.
  3. Day 3 — Elevator: step() simulation, hall vs cabin, SCAN narrative. Complete solution.
  4. Day 4 — Redo the weakest one under concurrency follow-up pressure.

← Lattice