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 375 results
- Data Structure DesignMediumAuto-gradedSimulate Snapshot Set Operations and Iterators
Simulate mutation and snapshot iteration on a persistent set structure using interval-based logical timestamps.
Data Structure Designdesign-dsarraysdata-structures - Data Structure DesignEasyAuto-gradedDesign a Deduplicated Storage System
Simulate file system operations while maintaining deduplicated content storage using reference counting.
Data Structure Designdesign-dsarraysstrings - Data Structure DesignMediumAuto-gradedRun-of-K Grid Game Simulator for Many Players
Simulate an N x N, M-player connect-K game with turn order, move validation, win detection from the last move, board snapshots and undo.
Data Structure Designsimulationgriddesignundo - Data Structure DesignMediumAuto-gradedRoster Coverage and Rating Leaderboard Simulator
Simulate a command log against a stateful tracker that merges per-agent time intervals and ranks agents by average rating with alphabetical tie-breaking.
Data Structure Designdesignintervalshash-mapsorting - Data Structure DesignMediumAuto-gradedBatch-Driven Slash-Path Registry with Leaf-Only Deletion
Simulate a tree-shaped registry addressed by slash-separated paths, processing a batch of create, set, get and remove commands and returning one result per command.
Data Structure Designtriehash-mapdesignstring-parsing - Data Structure DesignMediumAuto-gradedAppend-Only Editor with Undo and Redo Replay
Simulate a tail-only text buffer with undo and redo histories, recording only edits that change the text and clearing redo on every new edit.
Data Structure Designdesignstacksimulationundo-redo - Data Structure DesignMediumAuto-gradedEarliest Non-Repeating ID in a Live Feed Replay
Replay a sequence of operations on a stream of integer IDs and report, at each query, the earliest-arriving ID seen exactly once, using a hash map plus an ordered queue.
Data Structure Designhash-mapqueuedesignstreaming - Data Structure DesignMediumAuto-gradedBatch Autocomplete Lookup Over a Dictionary of Words
Answer many prefix queries against a word list, returning sorted distinct matches for each, using sorting and binary search or a trie instead of rescanning the list per query.
Data Structure Designbinary-searchtriesortingstrings - Data Structure DesignEasyAuto-gradedLog Event Processor with Time Order
Tests data structure management and stable sorting to process out-of-order time-stamped events while preserving insertion order for ties.
Data Structure Designsortingdata-structuresdesign - Data Structure DesignMediumAuto-gradedRate-Limited Dispatcher: Which Requests Fire and When
Simulate a rate limiter with a fixed lockout window that keeps only the newest waiting request, using event-driven processing and a precise rule for requests landing exactly at window end.
Data Structure Designsimulationevent-driventhrottletwo-pointers - Data Structure DesignMediumAuto-gradedProcess LFU Cache Operations with Frequency and Recency Eviction
Simulate a Least Frequently Used (LFU) cache supporting fast O(1) operations, breaking tie frequencies by least recent usage.
Data Structure Designdesign-dsarrayshash-table - Data Structure DesignMediumAuto-gradedRunning Median Tracker Over an Operation Log
Process a log of insert and query operations on an integer stream, returning the current median for each query, using two heaps for efficient updates.
Data Structure Designheaptwo-heapsstreamingmedian - Data Structure DesignMediumAuto-gradedSubscription Filter Matching with Ordered Delivery
Simulate a message router that matches nested JSON events against per-queue filter policies and returns matching queues in first-subscription order.
Data Structure Designdesignhash-mapjsonsimulation - Data Structure DesignMediumAuto-gradedPath-Keyed File Store with Per-User Storage Quotas
Simulate a command stream on an in-memory file store with admin and user-owned files, prefix/suffix search, copying, and quota-driven eviction.
Data Structure Designhash-mapsimulationsortingdesign - Data Structure DesignMediumAuto-gradedPer-User Request Throttle Simulator with Rolling Time Window
Replay a list of throttle operations and decide, per user, whether each request fits within k accepted requests in a rolling window of t ms, using inclusive boundary rules.
Data Structure Designsliding-windowdequehash-mapsimulation - Data Structure DesignMediumAuto-gradedWord Index with Prefix Queries and Ordered Suggestions
Simulate a command sequence on a word index that supports insert, exact lookup, prefix lookup, and alphabetically ordered, capped autocomplete, built on a trie.
Data Structure Designtriedesigndfsstrings - Data Structure DesignEasyAuto-gradedLedger Simulator with Holds, Deferred Payments and Cancellations
Simulate a small in-memory bank driven by a command script, covering account creation, instant and deferred transfers, batch settlement and cancellation of pending transfers.
Data Structure Designsimulationhash-mapstate-managementclass-design - Data Structure DesignMediumAuto-gradedHourly Courier Pay Ledger with Settlement Watermark
Simulate a payroll ledger that records work intervals, tracks accrued cost, and settles wages up to a cutoff time without double-paying.
Data Structure Designdesignsimulationintervalsidempotency - Data Structure DesignMediumAuto-gradedReplay Commands on a Fixed-Bucket Key-Value Store
Simulate a hand-built key-value store with a fixed bucket count by replaying a command log, handling collisions and overwrites correctly without a built-in dictionary.
Data Structure Designhash-tableseparate-chainingsimulationdesign - Data Structure DesignMediumAuto-gradedTicket Ranges: Find the Bucket Owning Each Draw
Map integer draws to the index whose cumulative weight range contains them, using prefix sums and binary search, driven through a batch of init/query operations.
Data Structure Designprefix-sumbinary-searchdesignbisect - Data Structure DesignMediumAuto-gradedClosest Pair Gaps Between Words in a Fixed List
Answer many closest-index-distance queries over a fixed word list by building a position index, precomputing same-word gaps, and binary searching the smaller list.
Data Structure Designinverted-indexbinary-searchpreprocessinghash-map - Data Structure DesignMediumAuto-gradedFailure Streaks and Fix Times from a Live Test Log
Process a stream of pass/fail log operations, answering shortest-fix-time and longest-concurrent-failure-window queries with an incremental, level-based data structure.
Data Structure Designdesignstreamingintervalshash-map - Data Structure DesignMediumAuto-gradedReplay Operations on a Fixed-Size Ring Buffer Queue
Simulate a fixed-capacity circular FIFO queue from an operation log, handling wraparound, full and empty states, and logical index lookups in constant time per operation.
Data Structure Designcircular-queuering-buffersimulationdesign - Data Structure DesignHardAuto-gradedSimulate LFU Cache Sequence
Process a series of LFU cache queries with LRU tie-breaking and track the output of each operation.
Data Structure Designhash-tablelinked-listdesignlfu-cache - Data Structure DesignMediumAuto-gradedReplay-Safe Versioned Record Updates Simulator
Simulate a record store that applies updates with optimistic version checks and per-record idempotency keys, replaying cached results for retries and rejecting reused keys.
Data Structure Designdesignhash-mapidempotencyoptimistic-concurrency - Data Structure DesignMediumAuto-gradedNested Transaction Log for an In-Memory Dictionary
Simulate a key-value store with nested begin, commit and rollback by replaying a command list and recording each read result.
Data Structure Designhash-mapstacktransactionsundo-log - Data Structure DesignMediumAuto-gradedReplay a Typing Session Against a Ranked Suggestion History
Simulate keystroke-by-keystroke search suggestions over a frequency-weighted history that grows as queries are committed, ranking the top 3 matches by count and then text.
Data Structure Designhash-mapdesignstring-prefixtop-k - Data Structure DesignMediumAuto-gradedDesign an In-Memory Reservation Manager
Implement an in-memory venue reservation system supporting quick seat allocation, cancellation tracking, and capacity queries.
Data Structure Designhash-tabledesignstacksdata-structures - Data Structure DesignMediumAuto-gradedChat Activity Tracker with a Rolling 15-Minute Window
Simulate a chat activity tracker with a closed rolling window, touch/close liveness rules, and out-of-order events, using bounded-memory eviction.
Data Structure Designdesignhash-mapheapsliding-window - Data Structure DesignMediumAuto-gradedDesign a Dispatch Queue for Autonomous Taxi Requests
Simulate an event-driven dispatching system that maintains pending requests ordered by pickup time and processes state updates efficiently using heaps and hash maps.
Data Structure Designheaphash-tabledesignsorting