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.
31 write-ups
| Title | Difficulty |
|---|---|
| State Pattern How the State pattern turns an object with modes into one class per state, with a vending machine example, an ATM walkthrough, transition tables for order lifecycles and when not to use it. | |
| 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 Circuit Breaker Design a circuit breaker that fails fast when a dependency is down: closed, open and half-open states, failure and success thresholds, a lazy timeout, and safe use from many threads. | 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 Grocery Subscription Service Design a grocery subscription service where customers get a basket every few days, can pause, resume or cancel, and a daily job turns every due subscription into an order. | Medium |
| Design a Hotel Management System Design a hotel front-desk system with room types, date-range reservations, a check-in and check-out lifecycle, extras on an itemized bill, and early check-out. | 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 Live Cricket Score App Design a Cricbuzz-style live cricket score app that records every ball, tracks runs, overs, wickets and strike, writes ball-by-ball commentary, lists the schedule and ranks players by career stats. | Medium |
| Design a Multithreaded Download Manager Design a download manager that splits files into chunks fetched in parallel by a worker pool, retries failed chunks, supports pause and resume, and reports progress safely across threads. | Medium |
| Design a Music Player Design a Spotify-style music player with a song library, playlists, a play queue, next and previous, repeat one or all, and a reproducible shuffle that keeps the current song playing. | 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 Pipeline Runner Design a CI-style pipeline runner that loads jobs from a YAML config, rejects unknown dependencies and cycles, runs ready jobs in parallel on a fixed worker pool, and skips everything downstream of a failure. | Medium |
| Design a Project Management Tool Design a Jira or Trello style tracker with projects, members, prioritized tasks, a status workflow with rules, assignees, comments, an activity history and board queries. | Medium |
| Design a Restaurant Management System Design a restaurant point-of-sale system that seats parties at the best table, sends order items to a first-in, first-out kitchen queue, tracks each ticket's status and closes the bill. | 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 |
| Design a Smart Thermostat Design a smart thermostat with off, heat, cool and auto modes, a daily schedule with manual holds, several room sensors, and a deadband so the furnace does not flick on and off. | Easy |
| Design a Traffic Light Controller Design the controller for a two-road crossroads: green and yellow phases on timers, a rule that two roads are never green at once, and a pedestrian button that adds a walk phase. | Easy |
| Design a Vending Machine Design a coin-operated vending machine with products, a coin box that pays exact change, a cancel button and a service mode for restocking, using the State pattern. | Easy |
| Design an Airport Runway Controller Design the controller that hands out an airport's runways, with a waiting queue where emergencies beat landings and landings beat takeoffs, cancellations, and clearances worked out from explicit timestamps. | Medium |
| Design an Alerting System Design an alerting engine with metric threshold (query) checks and health checks, an OK / PENDING / FIRING state machine with a "for" duration, and notifications on firing and resolving. | Medium |