Low-level design
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
34 write-ups
| Title | Difficulty |
|---|---|
| Design a Parking Lot Design a multi-level parking lot with spot sizes, fitting rules, tickets on entry, fees on exit through a swappable pricing strategy, and live availability counts. | Medium |
| Design Amazon Locker Design a self-service package locker with locker sizes, best-fit assignment, one-time pickup codes, a hold time after which packages expire, and a courier sweep that takes them back. | Medium |
| Design an Elevator System Design a multi-elevator controller that moves each car with the SCAN (LOOK) algorithm and dispatches every hall call to the car that would arrive first. | Medium |
| Design a Board Game Framework Design one engine that runs many turn-based games, with Ludo and Uno as plug-in rules, a shared turn check and move log, online rooms, and replays rebuilt from the moves. | Medium |
| Design a Calendar Design a shared calendar with recurring events stored as rules plus one-off edits and deletes, reminders fired by a clock tick, and team events that need N free members within working hours. | Medium |
| Design a Clinic Appointment System Design a clinic booking system where doctors publish one-hour slots, patients search by specialty, book and cancel, and a first-come waitlist hands freed slots to the next patient. | Medium |
| Design a Customer Support Chat Design an Intercom-style support inbox with conversations routed to agents by capacity, helper agents who join, read receipts with per-user watermarks, and toggled emoji reactions. | Medium |
| Design a Feature Flag Service Design a feature flag service with kill switches, targeting rules, sticky percentage rollouts, a versioned config with per-flag rollback, and watchers that never miss a change. | Medium |
| Design a Flight or Train Booking System Design a flight booking system with route search, seat classes, group bookings, automatic seat numbers, refunds through a swappable policy, and airline-side flight cancellations. | Medium |
| Design a Food Delivery Service Design a DoorDash-style food delivery service with an order life cycle, nearest-courier assignment behind a swappable strategy, a wait queue when no courier is free, and cancellations. | Medium |
| Design a Job Scheduler Design a job scheduler that runs immediate, one-off and recurring jobs on a fixed worker pool, with an event loop over timers, clear status tracking, cancellation and room for cron schedules. | Medium |
| Design a JSON/XML Parser Design a parser that reads JSON and a subset of XML into one document tree, with a tokenizer, recursive descent, numbers kept exactly, and a registry that makes formats swappable. | Medium |
| Design a Lead Distribution Engine Design an engine that hands incoming sales leads to agents, with a swappable rule per business unit (round robin, least loaded, skill match), agent capacity and availability. | Medium |
| Design a Library Management System Design a library system with books and their physical copies, members with loan limits, due dates and late fines, and a first-come-first-served hold queue that keeps returned copies for the next member. | Medium |
| Design a Load Balancer Design an in-process load balancer with pluggable round robin, weighted, least connections and random picking, health status, and retries that move a failed request to another backend. | Medium |
| Design a Logging Framework Design a logging framework with levels, appenders and formatters, an async bounded buffer with backpressure policies and flush, and an audit trail that never loses an entry. | Medium |
| Design a Notification Service Design a multi-tenant notification service with per-tenant templates, email/SMS/push channels, a priority queue drained by workers, and retries with exponential backoff. | Medium |
| Design a Payment System Design a payment orchestrator that routes each payment to a provider by method with failover, moves it through a strict state machine, and makes client retries safe with idempotency keys. | Medium |
| Design a Rate Limiter Design an in-process rate limiter with per-client limits and pluggable fixed window, sliding window and token bucket algorithms, then make it safe for many threads. | Medium |
| Design a Ride-Sharing Service Design an Uber-style ride-sharing core with ride types, nearest-driver matching behind a strategy, a trip state machine, distance-and-time fares and cancellation fees. | Medium |