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 |
|---|---|
| Design an Apartment Visitor System Design a gated-community visitor system where guards log visitors, residents approve or deny them, guests use pre-approved passes, and the gate always knows who is inside. | Easy |
| Design an ATM Design an ATM with card and PIN sessions as a State pattern, card blocking after wrong PINs, all-or-nothing cash dispensing by note, deposits, and safe concurrent withdrawals from one account. | Medium |
| Design an Online Auction System Design an online auction system with bid rules, auctions that close exactly at their end time through a min-heap of deadlines, per-bidder winnings, and safe concurrent bidding with per-auction locks. | Medium |
| Design an Online Stock Brokerage Design an online brokerage with accounts and cash, market and limit orders that hold funds until they fill, a portfolio valued at live prices, and named watchlists. | 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 an Underground System Design a metro tap-in and tap-out system that tracks riders between stations and answers the average travel time of any route in constant time, with the rules for double taps and missing check-ins. | Medium |
| Design Battleship Design two-player Battleship with validated ship placement, a placement-then-battle game phase, shots that report miss, hit and sunk in constant time, and room for a computer opponent. | Easy |
| Design Blackjack Design a blackjack table with a shoe of cards, hands that count aces correctly, betting and turn phases, fixed dealer rules, 3 to 2 payouts, and a path to an online table with many seats. | Medium |
| Design Game Matchmaking Design a matchmaker that groups players by mode (1v1, 2v2, 4v4), region and level, joins an open lobby or creates one, starts full games and splits them into balanced teams. | Medium |
| Design Minesweeper Design Minesweeper: mine placement kept outside the game, neighbor counts, flood reveal with a queue, flags, and win or lose detection with a counter instead of a board scan. | Easy |
| Design Movie Ticket Booking Design a BookMyShow-style booking system with shows, seat maps, temporary seat holds that expire, confirm and cancel, and safe booking when many users want the same seat. | Medium |