practice a little every day — you've got this ♡
Data Structure Design Interview Problems
Practice 5973 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.
- 5973
- Problems
- 2212
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 271–300 of 375 results
- Data Structure DesignMediumAuto-gradedSimulate a Fixed-Capacity Circular Queue
Tests ability to implement a circular buffer with O(1) enqueue/dequeue/peek and correct wraparound, full/empty handling, and ordered iteration.
Data Structure Designcircular-bufferqueuearraysimulation - Data Structure DesignMediumAuto-gradedRound-Robin Task Distribution with Dynamic Server Availability
Tests stateful simulation with circular iteration, capacity tracking, and toggling availability flags.
Data Structure Designsimulationcircular-iterationstate-management - Data Structure DesignMediumAuto-gradedReplay Operations Against an LRU Cache
Replay a scripted sequence of get/put operations against a fixed-capacity LRU cache and return one result per operation.
Data Structure Designlru-cachehash-mapsimulationordered-dict - Data Structure DesignHardAuto-gradedBuild a Record Filter with Nested Query Conditions
Evaluate structured filter expressions with comparison, membership, and logical operators over in-memory records
Data Structure Designrecursiondata-structuresquery-evaluation - Data Structure DesignEasyAuto-gradedFind Minimum Index Gap Between Word Pairs
Tests the ability to preprocess data for efficient repeated lookups using hash maps and two-pointer merging of sorted lists.
Data Structure Designhash-maptwo-pointerspreprocessing - Data Structure DesignMediumAuto-gradedDeduplicate Repeated Log Messages with Time Window
Filter a time-ordered stream of log messages to show each distinct message only once per 10-second window
Data Structure Designhash-mapstreamingrate-limiting - Data Structure DesignMediumAuto-gradedSimulate an In-Memory Key-Value Store
Tests ability to implement a command-driven key-value store with correct upsert, lookup, conditional update, delete, and membership semantics.
Data Structure Designhash-tablesimulationdesign - Data Structure DesignMediumAuto-gradedMaintain Contiguous Delivery Sequence and Detect Gaps
Tests managing out-of-order arrivals with sets to track the longest complete prefix and identify missing elements in a sparse range.
Data Structure Designsetstrackingstate-management - Data Structure DesignMediumAuto-gradedTime-Travel Array with Historical Query Support
Design a data structure that tracks an array's evolution through snapshots and answers queries about past states efficiently.
Data Structure Designbinary-searchversioningdata-structures - Data Structure DesignMediumAuto-gradedWord Dictionary with Insert and Query Operations
Tests implementing a character-level trie to handle insert, exact-match lookup, and prefix-existence queries while distinguishing complete words from prefixes.
Data Structure Designtriedata-structuresstring-matching - Data Structure DesignHardAuto-gradedIn-Memory Cell Grid with Formula Chaining
Tests dependency graph design, lazy cache invalidation, recursive formula evaluation, and cycle detection in a grid of named cells.
Data Structure Designdesigngraphssimulation - Data Structure DesignMediumAuto-gradedSliding-Window Traffic Throttle with Dual Limit Rules
Tests sliding-window counting over timestamped event logs using per-source and per-source-destination deque-based rate limiting.
Data Structure Designsliding-windowdequehash-mapsimulation - Data Structure DesignMediumAuto-gradedFour-Card Hand Ranker with Extensible Type System
Tests object-oriented design skills by building a modular, open/closed hand classifier and comparator for a custom four-card game.
Data Structure Designoopdesignsimulation - Data Structure DesignMediumAuto-gradedMini Spreadsheet: Cell Formulas and Cycle Detection
Tests dependency graph modeling, cycle detection on writes, and correct value propagation across a simple formula-based spreadsheet engine.
Data Structure Designgraphsdfsdesign - Data Structure DesignMediumAuto-gradedShared Token Bucket with Optimistic Concurrency
Tests implementation of a token bucket rate limiter over a versioned key-value store, including lazy replenishment, clock skew tolerance, and CAS-based retry logic.
Data Structure Designdesignconcurrencysimulation - Data Structure DesignMediumAuto-gradedGroup Expense Balancer: Greedy vs Optimal Settlement
Tests ability to implement both a greedy two-pointer debt-clearing algorithm and an exact minimum-transaction settlement using memoized recursion.
Data Structure Designgreedymemoizationsimulation - Data Structure DesignMediumAuto-gradedSnapshot Reads from a Multi-Version Key-Value Log
Tests whether you can design a versioned key-value store that answers "what was the value at time T?" in sub-linear time using binary search on per-key version histories.
Data Structure Designbinary-searchhash-tabledesign - Data Structure DesignMediumAuto-gradedWorker Pay Rate Ledger with Interval Cost Queries
Tests piecewise-constant function integration, lazy evaluation, and interval clipping inside a simulated in-memory billing system.
Data Structure Designdesignintervalssimulation - Data Structure DesignMediumAuto-gradedParcel Locker Manager with History Tracking
Build a locker allocation system that assigns the smallest free locker, validates pickups, and remembers the last package stored in each locker.
Data Structure Designheapsimulationdata-structure-design - Data Structure DesignHardAuto-gradedTimestamped Press-and-Release Event Classifier
Tests per-button state tracking and timing logic over an ordered event stream to classify completed press-release pairs by hold duration.
Data Structure Designhash-mapevent-streamstate-machine - Data Structure DesignMediumAuto-gradedSimulate a Frequency-Based Eviction Cache
Tests ability to simulate a sequence of get/put/delete operations on an LFU-like cache that evicts the least-frequently-used key on overflow, with tie-breaking by insertion order.
Data Structure Designdata structuressimulationcache - Data Structure DesignHardAuto-gradedMulticore Thermal Simulation with Adaptive Cooling Selection
Tests discrete-event simulation skills: delayed load semantics, proportional passive cooling with vibration penalties, fixed-point active cooling selection, and transition-only status reporting.
Data Structure Designsimulationstate-machinefixed-point - Data Structure DesignHardAuto-gradedN-Player High-Card Showdown: Simulate and Score
Tests object-style thinking, round-robin dealing, and deterministic simulation of a card game where each round's highest card wins all played cards.
Data Structure Designsimulationqueuesgame-design - Data Structure DesignHardAuto-gradedTTL-Aware LRU Cache with Lazy Expiration
Tests ability to design an O(1) key-value store combining LRU eviction with per-entry time-to-live expiration using a hash map and doubly linked list.
Data Structure Designlinked-listshash-mapcachelru - Data Structure DesignEasyAuto-gradedReplay an Operation Log to Answer Versioned Key Lookups
Tests the ability to simulate a versioned key-value store by replaying a sequence of set/delete operations and answering point-in-time key lookups.
Data Structure Designdata structuressimulationhash map - Data Structure DesignMediumAuto-gradedSimulate LRU Cache with Composite Keys
Tests understanding of LRU eviction policy, composite key normalization, and cache statistics tracking through command simulation.
Data Structure Designlru-cachehashingordered-dictdata-structures - Data Structure DesignMediumAuto-gradedCircular Buffer Deque with Auto-Resize
Tests ability to build a double-ended queue on a ring-indexed array that doubles in capacity when full, keeping all operations amortized O(1).
Data Structure Designdequecircular-arrayamortized-analysis - Data Structure DesignMediumAuto-gradedBuild a Time-Aware Key-Value Store with Expiration Logic
Tests data structure design, time-based expiration semantics, and clean handling of missing or stale entries in an in-memory cache.
Data Structure Designhash-tabletime-simulationexpirationcache-design - Data Structure DesignMediumAuto-gradedDigit Hand Showdown
Classify numeric hands by frequency patterns with custom ranking, then break ties using positional comparison without sorting.
Data Structure Designobject-oriented-designpattern-matchingextensibility - Data Structure DesignMediumAuto-gradedSession Key Manager with Deferred Cleanup
Tests building a session-key store with TTL-based lazy eviction using a hash map and min-heap to process a sequence of operations.
Data Structure Designheaphash-maplazy-deletionsimulation