LLD Problems
Classic machine-coding and LLD prompts, each with clarified requirements, a class skeleton, key flows, and the follow-ups interviewers like to push on. Try sketching your own design for 30 minutes before opening the solution.
Easy · 5
Tic-Tac-Toe
30 minAn N x N board game with pluggable players and constant-time win detection.
Snake and Ladder
30 minA multiplayer board game with configurable board, dice, and jump rules.
LRU Cache
30 minA fixed-capacity cache with O(1) get/put and least-recently-used eviction.
Logging Framework
35 minA logger with levels, formatters, and multiple pluggable output sinks.
Library Management System
40 minMembers borrow, return, and reserve book copies with due dates and fines.
Medium · 9
Parking Lot
45 minA multi-floor lot that allocates spots by vehicle type and charges on exit.
Vending Machine
40 minA coin-and-note machine modelled as an explicit state machine.
Rate Limiter
40 minA per-client limiter with swappable algorithms and thread-safe counters.
ATM System
45 minCard authentication, withdrawals with note dispensing, and bank integration.
Splitwise (Expense Sharing)
45 minTrack shared expenses with equal, exact, and percentage splits and settle balances.
Notification Service
40 minSend templated notifications over email, SMS, and push with preferences and retries.
Meeting Room Scheduler
40 minBook rooms for time slots without conflicts and suggest available rooms.
Inventory and Order Management
45 minReserve stock, place orders, and handle payment and cancellation without overselling.
Hotel Booking System
45 minSearch and book hotel rooms across date ranges without double-booking.
Hard · 6
Elevator System
50 minA bank of elevators that dispatches requests efficiently with pluggable scheduling.
Movie Ticket Booking (BookMyShow)
50 minBrowse shows, hold seats temporarily, and confirm bookings under heavy contention.
Ride Sharing (Uber)
50 minMatch riders with nearby drivers, track trips through their lifecycle, and price them.
Food Delivery (Swiggy/Zomato)
50 minRestaurants, carts, orders, and delivery-agent assignment with live status updates.
Chess
50 minA two-player chess engine with per-piece move rules, check detection, and undo.
Pub-Sub Message Queue
50 minAn in-memory broker with topics, consumer groups, offsets, and at-least-once delivery.