practice a little every day — you've got this ♡
Data Structure Design Interview Problems
Practice 5971 original coding, SQL, system design, machine learning and behavioral problems across 15 topics. Coding and SQL problems run against hidden test cases right in your browser; every problem has hints and a worked solution, free.
- 5971
- Problems
- 2211
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 91–120 of 737 results
- Data Structure DesignMediumAuto-gradedTop-of-Book Quotes per Venue and Across All Venues
Aggregate order records by price level to answer per-venue and market-wide best bid and ask queries, summing the size at the best price.
Data Structure Designhash-mapaggregationorder-booksimulation - Data Structure DesignMediumAuto-gradedSeat Assignment with Forward-Only Probing on a Fixed Row
Decide whether every request in a sequence can be seated in a fixed row when taken spots push it to the next free higher slot; tests efficient next-free-slot lookup, e.g. with union-find.
Data Structure Designunion-findsimulationarraysgreedy - Data Structure DesignMediumAuto-gradedPrioritized Delayed Job Queue Simulator
Simulate a delayed job queue by replaying a log of schedule, reschedule, cancel and poll operations, returning each result in order while respecting priority and time ordering.
Data Structure Designheaphash-mapsimulationlazy-deletion - Data Structure DesignMediumAuto-gradedTrack and Analyze Obstacle Course Runs
Simulate obstacle course data structures, track per-stage times, calculate target metrics, and run Monte Carlo probability estimation.
Data Structure Designdesign-dsarraysstatistics - Data Structure DesignMediumModel answerStreaming Reader for a Page-Based Word Source
Build a class that wraps a slow, paginated word API and serves exact word counts per call, keeping leftovers between calls and fetching pages lazily.
Data Structure Designclass-designbufferingpaginationdeque - Data Structure DesignMediumModel answerBuild a Thread-Safe Cart with Pluggable Promotions
Design an in-memory shopping cart with exact money arithmetic, strategy-based promotions, an itemized receipt, and safe concurrent updates.
Data Structure Designobject-oriented-designstrategy-patternvalue-objectconcurrency - Data Structure DesignEasyAuto-gradedReplay Operations on a Fixed-Capacity FIFO Buffer
Simulate a bounded first-in-first-out buffer over a list of put and take commands, rejecting any command that would have to wait.
Data Structure Designqueuesimulationdesignfifo - Data Structure DesignEasyAuto-gradedField-Level Visibility Filter for Employee Records
Build a function that returns only the employee record fields a viewer may see, based on admin status, identity, department, reporting line, and view type.
Data Structure Designaccess-controldictionariessimulationrule-evaluation - Data Structure DesignMediumModel answerBuild a Type-Ahead Catalog Lookup with Cancellation and Caching
Build an accessible type-ahead lookup that delays requests, discards outdated responses, remembers past queries, supports keyboard control, and copes with errors.
Data Structure Designfrontendreactdebounceabortcontroller - Data Structure DesignEasyModel answerDismiss-Then-Navigate: A Browser Notice Helper in Plain JS
Write a vanilla JavaScript function that shows a message to the user and moves the page to a given address once the message is closed, skipping the move when the address is not a non-empty string.
Data Structure Designjavascriptdombrowser-apisevent-handling - Data Structure DesignMediumModel answerBuild a Layered In-Memory Work Tracker with Quotas and Deadlines
Design an in-memory work tracker in four growing stages: CRUD, name and priority queries, per-user limits with timed assignments, then completion and lateness reports.
Data Structure Designdesignin-memoryhash-mapsorting - Data Structure DesignMediumAuto-gradedSliding Log Window: Distinct Tags and Dominant Tag Since a Cutoff
Replay operations on a bounded, timestamp-ordered log of the newest entries, answering cutoff queries with the distinct key count and the most frequent key (smallest on ties).
Data Structure Designdesignhash-mapbinary-searchsliding-window - Data Structure DesignMediumModel answerDesign a Thread-Safe Log Rotating Sink
Implement a thread-safe, size-bounded rotating file sink class adhering to Liskov substitution and Python context manager protocols.
Data Structure Designobject-oriented-designconcurrencyfile-iopython - Data Structure DesignHardModel answerBuild a Scalable Memory-Constrained API Ingestion Pipeline
Ingest, normalize, filter, and stream-sort paginated API data under memory constraints with exponential backoff and rate limiting.
Data Structure Designpaginationrate-limitingexternal-sortdata-engineering - Data Structure DesignMediumModel answerInterleaved Dual-Thread Sequencer
Coordinate two concurrent threads to output consecutive integers from 1 to n in strictly alternating parity order.
Data Structure Designconcurrencythreadingsynchronizationmutex - Data Structure DesignMediumAuto-gradedBatch Processor for a Directed Follow Graph
Simulate a sequence of follow, unfollow, and query operations on a directed user graph, keeping outgoing and incoming edge views consistent and returning sorted results.
Data Structure Designhash-mapsetgraphdesign - Data Structure DesignMediumModel answerSpot the Slicing and Double-Free Bugs in a C++ Buffer Hierarchy
Review a C++ class hierarchy that owns a raw heap buffer, explain why passing it by value breaks it, and rewrite it with modern ownership and correct polymorphic dispatch.
Data Structure Designcppraiirule-of-fiveobject-slicing - Data Structure DesignHardModel answerPayment Command Parser and Lifecycle State Machine Design
Design a parser for fixed-arity payment commands and an object-oriented lifecycle state machine, and identify which business rules need clarification before implementation.
Data Structure Designstate-machineparsingobject-oriented-designvalidation - Data Structure DesignHardModel answerVariable-Argument Functions Across Languages, with a Safe Logger
Compare how two languages implement functions with a variable number of arguments, then design a type-checked key-value logger that avoids injection and needless allocation.
Data Structure Designvariadic-functionstype-safetycalling-conventionslogging - Data Structure DesignMediumAuto-gradedShelf Command Simulator with Versioned Edits and Durable Bookmarks
Simulate a shelf of books with positional ordering, version-checked edits and ID-based bookmarks that survive reordering and are cleaned up on deletion.
Data Structure Designdesignhash-mapsimulationoptimistic-concurrency - Data Structure DesignMediumAuto-gradedCard Settlement Batch with Fees, Rebates and Duplicate Guard
Simulate a ledger: order card transactions by time, compute integer fee and rebate, enforce balance limits, and flag repeated transaction IDs.
Data Structure Designsimulationsortinghash-setinteger-arithmetic - Data Structure DesignMediumModel answerMulti-Device Login Burst Detector over a Late-Tolerant Stream
Design a streaming detector that flags users with 4 or more distinct devices logging in successfully within 10 minutes, tolerating events up to 30 seconds late, with bounded memory.
Data Structure Designsliding-windowstreamingwatermarkordered-map - Data Structure DesignMediumModel answerBuild a Terminal Block-Stacking Game Engine
Design a testable, terminal-friendly engine for a falling-block puzzle on a 10x20 grid, covering movement, rotation, gravity, locking, line clearing and game over.
Data Structure Designgame-logicstate-machinesimulationobject-oriented-design - Data Structure DesignMediumAuto-gradedDeadline-First Job Queue with Prerequisite Gating
Simulate a job queue where jobs unlock after their prerequisites are consumed, always serving the earliest-deadline unlocked job; tests heaps, dependency counting, and tie-breaking.
Data Structure Designheaptopological-sortgraphsimulation - Data Structure DesignMediumAuto-gradedTwo-Tier Fixed-Window Request Throttle Simulator
Simulate a throttle that enforces a shared limit and a per-key limit over epoch-aligned fixed windows, with lazy reset and a defined precedence between the two rejection reasons.
Data Structure Designrate-limiterfixed-windowhash-mapsimulation - Data Structure DesignEasyAuto-gradedSimulate a Task Board with Id-Keyed Commands
Process a batch of add, update, get and delete commands against an in-memory task store keyed by id, returning one result per command.
Data Structure Designhash-mapsimulationdesigndictionary - Data Structure DesignMediumAuto-gradedLongest Dictionary Word Ending With a Given Tail
Answer batches of suffix queries over a word list, returning the longest match with lexicographic tie-breaking, using a reversed-word trie with cached best words.
Data Structure Designtriestringssuffixpreprocessing - Data Structure DesignHardAuto-gradedSeat Row Simulator: Leftmost Block Booking and Group Release
Simulate a row of seats where each booking takes the leftmost free block of a given length and a release frees all of a group's seats, efficiently on large inputs.
Data Structure Designsegment-treelazy-propagationsimulationinterval-bookkeeping - Data Structure DesignEasyAuto-gradedSimulate Stream Price Volatility Monitor
Execute stateful stream commands to maintain the two most recent values and calculate their difference and floating-point average.
Data Structure Designdesign-dssimulationstate-management - Data Structure DesignMediumModel answerBuilding a Multi-Level Credit Ledger with Timed Transfers and Merges
Build an in-memory ledger of credit-holding workspaces in four stages: transfers with a top-k ranking, timed transfers with cancellation, workspace merges, and point-in-time balance lookups.
Data Structure Designclass-designheapbinary-searchsimulation