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 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 Message Queue Design a Kafka-like message queue with partitioned append-only logs, key-based partitioning, consumer groups with rebalancing, committed offsets, time-based retention and thread-safe producers and consumers. | Hard |
| Design a Multi-Level Cache Design an L1/L2 cache in front of a slow store, with LRU eviction per level, promotion on reads, write-through and write-back policies, and a distributed version with consistent hashing and quorums. | Hard |
| Design a Multi-Stage Pipeline Design an in-process pipeline whose stages run on their own threads, joined by bounded queues for backpressure, with a poison-pill shutdown that finishes every accepted item. | 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 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 |