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.
20 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 a Connection Pool Design a database connection pool with a size limit, callers that wait in line with a timeout, idle timeouts, dead connections dropped and replaced, and a thread-safe version. | 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 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 Garbage Collector Design a garbage-collected heap with roots, references and automatic collection, compare reference counting with mark-and-sweep, and see why cycles and deep chains shape the design. | Hard |
| 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 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 Meeting Room Scheduler Design a meeting room scheduler that books the smallest free room with enough seats, detects time conflicts quickly with sorted bookings, and supports cancels and availability queries. | Medium |
| Design a Memory Allocator Design a malloc-style allocator over a fixed heap with allocate, free and reallocate, first-fit and best-fit placement, block splitting, coalescing of free neighbours, and fragmentation stats. | Hard |
| 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 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 Vehicle Rental System Design a car and bike rental system with vehicle types, time-range bookings without double-booking, pick-ups and returns, duration pricing with late fees, and constant-time rented counts. | Medium |
| 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 a VM Provisioning System Design the scheduler behind a small cloud: hosts with CPU and memory, VMs placed by a swappable first-fit, best-fit or spread policy, release of capacity, and draining hosts for maintenance. | Medium |
| 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 Inventory Management System Design multi-warehouse inventory: on-hand and reserved stock, reservations that are committed or released, a swappable rule for picking warehouses, and low-stock alerts that fire once. | Medium |
| Design an Order Management System Design an online shop's order system: all-or-nothing stock reservation, an order lifecycle from placed to delivered, cancellations with refunds, and unpaid orders that expire on their own. | Medium |
| Design the Unisex Bathroom Design a thread-safe shared bathroom that holds one gender at a time, never more than its capacity, and lets everyone in eventually, using a lock, a condition variable and a ticket line. | Medium |