Design a pizza price calculatorOO designDesign a price calculator for a pizza shop. A pizza starts from a size and a crust, which set its base price, and each topping adds to the price, with topping prices that can…
Last asked Nov 2026
Key-value store on a block device with 8-character blocksCodingYou get a small project with a block device already written and a KVStore class to finish so the unit tests pass. Keys may live in memory, but every value must be stored on the…
Reported by 1 member · Last asked Nov 2026
+1
Design a parking lotOO designDesign and implement the core of a parking lot in code. The lot has several floors, and each floor has numbered spots of three sizes: motorcycle, compact and large.
Resumable iterators that save and restore their positionCodingDesign an iterator that can save its position as a small, portable checkpoint and later be rebuilt from it, even in a new process, so iteration continues exactly where it…
Last asked Nov 2026
+1
Design a chess gameOO designDesign a two-player chess game in code: the board, the pieces and how each one moves, turns, check, checkmate and stalemate, and the special moves (castling, en passant…
Rectangle board with remove-at-cell, batch remove and undoCodingBuild a RectangleBoard that holds axis-aligned rectangles on a grid of width columns and height rows. Cells use zero-indexed (x, y), where x is the column and y is the row.
Last asked Oct 2026
Three-card poker: classify hands and pick the winnerCodingWrite a small poker program in which every player holds exactly three cards from one standard 52-card deck (no jokers). Work out what kind of hand each player has, decide who…
Notification service with several bots per channelOO designDesign the classes and interfaces for a notification service. A request names its recipients, the content and any of three channels: email, SMS and Slack.
Link object tracks across two perception systemsCodingTwo perception systems on a vehicle, A and B, track the objects around it independently. Each gives an object its own ID, so one physical object has one ID in A and a different…
Unix find command with pluggable filtersCodingImplement a small version of the Unix find command over an in-memory file system. The file system holds directories and files.
Last asked Sep 2026
Extensible spreadsheet range aggregatesCodingDesign a spreadsheet API with get_sum, get_max and get_min over a range of cells. A cell holds either a number or a formula, and an aggregate must read every cell's computed…
Last asked Sep 2026
Checkout price engine with pluggable discountsOO designDesign the price engine for an e-commerce checkout and write the code for its core parts. A cart holds line items, each with a product id, a unit price and a quantity.
Bookshelf with book CRUD and a stable bookmarkCodingDesign a bookshelf that holds books in an order and supports adding, reading, updating and removing them, plus a bookmark that keeps pointing at the right book while books are…
Last asked Aug 2026
Primary and secondary circuit breakers with failoverCodingA service reads from a primary backend and can fail over to a secondary backend (for example a leader database and a follower). Put a circuit breaker in front of each backend so…
Reusable locker allocation systemCodingBuild a locker bank that hands out lockers and takes them back so they can be reused. Storing a package assigns the lowest-numbered free locker; picking it up frees that locker…
Payment command parser and state machineCodingBuild the parser and the object-oriented core of a payment command console. Each input line is one command with an operation name and exactly four argument positions.
Last asked Aug 2026
+1
Recipe manager with ingredient searchCodingBuild an in-memory recipe book. Each recipe has a name, an ordered list of ingredients and an ordered list of steps.
Last asked Jul 2026
Tic-tac-toe with K playersCodingImplement tic-tac-toe for k players on an n x n board. Players take turns in a fixed order, each placing their own mark.
Last asked Jul 2026
Concurrent restaurant waitlist and seatingOO designDesign and code the waitlist and seating for a restaurant. Parties join the list with a size and a phone number, tables free up, and the system decides who sits where and texts…
Tree class with depth-first and breadth-first operationsOO designDesign a tree class and implement a set of operations on it. Some are naturally depth-first and some breadth-first: implement each with the traversal that suits it, and explain…
Last asked Jul 2026
+1
Design a hotel booking system (object-oriented)OO designDesign the object model for a hotel booking system: hotels with room types and rooms, guests, bookings and payments. Guests search for availability for a date range, book, and…
Last asked Jun 2026
Design a snake gameOO designDesign the snake game in object-oriented code. The snake moves on a grid, grows when it eats food, and the game ends when it hits a wall or its own body.
Last asked Jun 2026
Design a library management systemOO designDesign the object model for a library: books and their physical copies, members, loans, holds and fines. Members search the catalog, borrow and return copies, place holds on…
Design a voting systemOO designDesign the object model for a polling or voting system. A poll has a question and options, a set of eligible voters, and an open and close time. Each voter casts one vote, can…
Last asked May 2026
Extensible cinema ticket pricing engineOO designDesign the pricing engine for a cinema's tickets. A movie format (2D, 3D, IMAX…) sets a base price; the showtime (matinee, evening…) and the seat tier (standard, premium…) each…
Last asked May 2026
+2
Design an elevator control systemOO designDesign the object model for the elevators of a multi-floor building with several elevator cars. People press Up or Down on a floor, passengers choose a destination inside a car…
Last asked Apr 2026
In-memory pub/sub with prioritiesOO designDesign and code a publish/subscribe system that runs in one process. Publishers send messages to named topics; subscribers subscribe to and unsubscribe from topics; every current…
Per-user token bucket limiter with interval refillsCodingBuild a per-user token rate limiter for an AI API. Every user has their own policy, and one user's traffic never affects another's. A policy has three positive integers: -…
Last asked Apr 2026
Model a business identity verification (KYC) workflowOO designDesign the object model for verifying a business before it can accept payments (know-your-customer, KYC). A business applies with its identity details and supporting documents. A…
Last asked Mar 2026
Deck of cards with shuffle, draw and sortOO designDesign an in-memory model of a standard 52-card deck. Client code builds a fresh deck, shuffles it, draws cards one at a time until the deck is empty, and can put the remaining…
Last asked Mar 2026
Editable sequence with a markerCodingDesign a mutable ordered sequence of elements with a marker that points to one element. Support inserting and removing a contiguous block of elements at a position, moving a block…
Last asked Feb 2026
Assign dorm rooms by student preferenceOO designDesign the object model for a dormitory room-assignment system. You get a set of students and a set of rooms. Each room is either a two-person room or a four-person room, with…
Last asked Feb 2026
Backend for a game of checkersCodingBuild the backend of a two-player checkers game in limited time: the board state, legal moves, captures, promotion to king and the end of the game. The interviewer cares more…
Last asked Feb 2026
Extensible employee cost calculatorOO designDesign the object model and calculation API for what an employee costs the company. The total has four parts: base salary from the employee record; tax as a fixed percentage of…
Last asked Feb 2026
Cart and pricing engine for a food delivery orderOO designDesign the core classes of a cart and pricing engine for a food delivery marketplace. The final checkout price is rarely just the sum of the menu items. It depends on item…
Last asked Jan 2026
Design a poker gameOO designDesign the object model for a poker game, for example Texas Hold'em: cards and a deck, players and their chips, the betting rounds, and deciding the winner at showdown. Name the…
Last asked Jan 2026
Design Amazon Locker (object-oriented)OO designDesign the object model for a self-service package locker. A courier drops a package into a free compartment that fits it, and the system issues a one-time pickup code valid for a…
Last asked Jan 2026
Design Amazon Kindle (object-oriented)OO designDesign the object model behind an e-reader service: users buy books, download them to their devices, read them in several formats, and pick up on any device where they left off…
Last asked Jan 2026
+2
Design tic-tac-toe: an N-by-N game with win detectionOO designDesign an N-by-N tic-tac-toe game for two players in code. Players take turns placing their mark; a player wins by filling a whole row, column or either diagonal. After each move…
Last asked Dec 2025
Simple VM manager with add, list, modify and deleteCodingWrite a simple in-memory manager for virtual machines that can create, list, update and delete VMs. Each VM has an id (unique), name, cpucores, memorygb and status (for example…
Last asked Nov 2025
Design a basic credit card systemOO designDesign the classes of a basic credit card system. A customer has an account with a credit limit and one or more cards. Cards make purchases, which are authorized against the…
Last asked Oct 2025
Thread-safe single-machine chat server with channelsCodingBuild an in-process chat system that runs on one machine. Many clients, each on its own thread, join channels, leave them, post messages, and receive the messages posted to their…
Last asked Oct 2025
Design a wallet with holds and payoutsOO designDesign and implement, in code that runs, a wallet for a rental platform. Guests and hosts have balances. A booking puts the guest's money on hold; the hold is later captured (paid…
Last asked Sep 2025
Memory usage switcher with configurable thresholdsOO designDesign and code an in-memory switcher that watches the process's memory usage and switches between ENABLED and DISABLED when usage crosses thresholds the caller configures. For…
Last asked Sep 2025
Shopping cart pricing with category couponsCodingBuild the pricing engine for a shopping cart with coupons. Each item has an id, a category and a unitprice in integer cents. A coupon targets one or more categories and has a…
Last asked Sep 2025
Refactor a rock-paper-scissors simulationCodingYou are given existing code that runs a rock-paper-scissors tournament between three robot players and prints how many games each one won. Change it so the number of rounds is…
Last asked Sep 2025
Keyboard and mouse input systemOO designDesign an input system that records what a user does with the keyboard and the mouse and can tell, at any time, exactly what text the user entered. It must handle several input…
Last asked Sep 2025
Filter and analyze logs with an object-oriented designOO designDesign the classes of a log-processing service. It reads a stream of application log entries (time, service, host, level, message) and answers three kinds of query: filter the…
Last asked Sep 2025
Configuration store with subscriber notificationsOO designDesign a configuration service: a system sets configuration values, and applications subscribe to the keys or namespaces they care about. When a value changes, every subscriber of…
Last asked Sep 2025
Extensible event ticketing systemOO designDesign an EventTicketSystem that sells tickets for different kinds of events (concerts, movies, sports games). Adding a new kind of event or ticket later, with its own pricing…
Last asked Sep 2025
Price rides with fairness and poolingSystem designDesign the pricing engine of a ride-hailing platform, and write its core price calculation. It should earn the company as much revenue as it can while staying fair to riders and…
Last asked Sep 2025
Design a traffic light control systemOO designDesign the control software for one road intersection's traffic lights. The lights cycle through phases with set timings, pedestrians can press a button to request a crossing, and…
Last asked Sep 2025
Design a restaurant reservation serviceOO designDesign the object model for a restaurant reservation service. Restaurants have tables of different sizes and open hours divided into time slots. Guests search for availability by…
Last asked Sep 2025
Design Unix file searchOO designDesign a find-like file search over a directory tree. A search starts at a directory and returns the files that match a set of filters: name pattern, minimum or maximum size, file…
Last asked Aug 2025
Delayed job scheduler that runs each job after its delayOO designDesign and code a scheduler that accepts a job and a delay and runs the job that many seconds later. This is a low-level design question: name the classes, the APIs and the data…
Last asked Aug 2025
Thread-safe document and tag classesOO designDesign the classes for a system that stores documents and the tags on them, and make every operation safe when many threads call it at once. Write the core classes and methods in…
Last asked Aug 2025
Cloud storage with file versions and a trash binCodingBuild an in-memory file store in levels, each adding operations to the last. 1. Add a file with a size (adding an existing name stores a new version), read a file's size (its…
Last asked Apr 2024
Task and worker assignment modelOO designDesign and implement Task and Worker classes and a small manager that drives them, then use it to print the system's state. One operator makes calls one after another in a single…
Last asked Sep 2022
Component templates and instance overridesOO designA template defines a reusable component, such as a button with a label, a color and a corner radius. Users create instances of it and override some fields, for example the label…
Last asked Oct 2021
Design an ATM: card, PIN, balance, withdrawals and depositsOO designDesign the software for an ATM. A customer inserts a card and enters a PIN, then checks the balance, withdraws cash, or deposits. The machine has a cash dispenser holding notes of…
Connect Four board with gravity drops and board snapshotsCodingBuild the board for a gravity-based four-in-a-row game. Players drop single-character colored pieces into columns. A piece falls straight down and stops in the lowest empty cell…
Two-player card game simulationCodingYou are building the engine for a simple two-player card game. Players are named "A" and "B". The deck is a list of distinct integers, and a higher integer beats a lower one…
In-memory note-taking system with keyword searchCodingDesign an in-memory note-taking system, SecondBrainSystem. Each note gets a unique id and carries metadata about when it was created and last modified. Callers pass the current…
Design a vending machineOO designDesign a vending machine in code. It holds products in slots, accepts coins and notes, lets the customer select a product, takes payment, gives change and handles sold-out items…
Design a food delivery system (object-oriented)OO designDesign the object model for a food delivery app: restaurants and their menus, customers placing orders, couriers delivering them, and the states an order moves through. Include…
Design a coffee makerOO designDesign the software for a coffee machine. It has containers for ingredients (water, coffee beans, milk, sugar, chocolate), a set of drink recipes, and the steps to brew each one…
Design a blackjack gameOO designDesign the object model for a blackjack table: one dealer, several players, a shoe made of several decks, bets, and payouts. Players can hit, stand, double down and split; the…