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.
| Title | Difficulty |
|---|---|
| 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 Multithreaded Web Crawler Design a crawler that follows links on one host with a pool of worker threads, a shared frontier and visited set, robots rules, and a correct way to know when the crawl is done. | 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 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 Parallel Merge Sort Design a fork/join engine on a fixed thread pool that runs a parallel merge sort and a parallel sum, avoids pool-starvation deadlock, and knows when splitting stops paying off. | 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 Pizza Ordering System Design a pizza shop's ordering system with sizes and toppings, per-pizza billing, and swappable promotions such as BOGO Tuesday and happy hour, picking the best deal for the customer. | Easy |
| Design a Product Rating System Design star ratings and written reviews for an online store: one rating per user, O(1) averages from a running sum, reviews sorted by newest, stars or helpful votes, and a best-rated list. | Easy |
| 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 Pub/Sub System Design an in-memory publish/subscribe broker with topics, a bounded inbox per subscriber, a drop-oldest policy for slow readers, and async delivery by dispatcher threads. | 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 Request Batcher Design a request batcher that groups calls from many threads into one backend call, flushes when a batch is full or its time window ends, and hands every caller its own result. | 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 Rule Engine Design a fraud rule engine for card payments, with conditions composed from AND, OR and NOT, velocity rules, the most severe action winning, and safe rule changes under concurrent load. | Medium |
| Design a Shopping Cart with Coupons Design an e-commerce cart with stock checks, automatic buy-X-get-Y offers, coupons scoped to a cart, product or seller with validity windows and usage limits, and an all-or-nothing checkout. | Medium |
| Design a Skiplist Design a skip list with search, add and erase in O(log n) on average: a sorted linked list with express lanes, random node heights you can replay, duplicates, and the follow-ups on maps, ranks and threads. | Hard |
| 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 Social Network Design a Facebook-style social network with friend requests, posts, likes, comments, a news feed merged from friends' posts, and LinkedIn-style connection degrees. | Medium |