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 301–330 of 375 results
- Data Structure DesignMediumAuto-gradedFind Unreceived IDs in a Sequential Stream
Tests efficient gap tracking in a sequential ID space using sets and amortized range updates.
Data Structure Designsetrange-trackingamortized-analysis - Data Structure DesignMediumAuto-gradedBinary Layout Manager with Dynamic Field Insertion
Tests ability to maintain ordered sequences with efficient prefix-sum queries and positional insertions using balanced tree structures.
Data Structure Designbinary-search-treeprefix-sumdata-structure-design - Data Structure DesignMediumAuto-gradedPriority Queue Scheduler + Expression Evaluator
Tests heap-based priority scheduling with tie-breaking and recursive-descent expression parsing with variable substitution.
Data Structure Designheapparsingdesign - Data Structure DesignMediumAuto-gradedRate Limiter with Bucket Drain Simulation
Tests ability to model a rate-limiting algorithm with time-based decay, capacity bounds, and precise edge-case handling.
Data Structure Designrate-limitingsimulationstate-machine - Data Structure DesignMediumAuto-gradedSimulate a Cache with Recency-Based Eviction
Tests data structure design by building an in-memory cache that removes the least recently accessed entry when full.
Data Structure Designhash-maplinked-listcacheeviction-policy - Data Structure DesignMediumAuto-gradedCount-Weighted Random Sampling with Dynamic Insertions and Removals
Design a multiset supporting constant-time insert, remove, and random selection where each element's pick probability is proportional to its frequency.
Data Structure Designhash-maparraysrandomizationdata-structure-design - Data Structure DesignMediumAuto-gradedSimulate a Stack with Instant Maximum Access
Tests data structure design skills by building a stack that supports O(log n) max retrieval and removal, including removal from the middle when duplicates exist.
Data Structure Designstackheaplinked-listlazy-deletion - Data Structure DesignMediumAuto-gradedExecute Banking Operations with Transaction History
Tests command-pattern operation execution, input validation, atomic state transitions, and maintaining per-entity audit logs.
Data Structure Designsimulationvalidationstate-management - Data Structure DesignMediumAuto-gradedBuild a Multi-User File System with Quotas and Compression
Design an in-memory file manager tracking per-user storage limits, file operations, pattern matching, and size adjustments with atomic quota enforcement.
Data Structure Designhash-tablessimulationdesign - Data Structure DesignMediumAuto-gradedSimulate a Nested Tic-Tac-Toe Game with Board-Routing Rules
Tests state management for a two-layer game board with recursive win detection and dynamic move constraints based on previous plays.
Data Structure Designsimulationgame-theorystate-machine - Data Structure DesignMediumAuto-gradedDuplicate Linked List and Simulate LRU Cache Operations
Tests linked list deep copying with arbitrary pointers and implementing an LRU cache with O(1) operations using hash maps and doubly-linked lists.
Data Structure Designlinked-listshash-mapdesignpointers - Data Structure DesignEasyAuto-gradedSimulate a Bounded LRU Cache with Get/Put Operations
Tests the ability to simulate a fixed-capacity LRU cache by processing a sequence of get/put operations and collecting all get results in order.
Data Structure Designdata structurescachesimulation - Data Structure DesignMediumAuto-gradedKey-Value Store Operation Simulator
Tests ability to use hash maps for constant-time operations and handle state transitions in a key-value store simulation.
Data Structure Designhash-mapsimulationdata-structures - Data Structure DesignMediumAuto-gradedHistorical Key-Value Store with Time-Based Retrieval
Tests your ability to build a versioned data store supporting efficient historical lookups through binary search on sorted timestamps.
Data Structure Designbinary-searchhash-mapdata-structures - Data Structure DesignHardAuto-gradedSliding-Window Event Counter with a Circular Bucket Buffer
Design a fixed-memory event counter using a ring buffer of per-second buckets that tracks how many events fell inside a trailing 15-minute window.
Data Structure Designring-buffersliding-windowdesignsimulation - Data Structure DesignMediumAuto-gradedCart History: Undo and Redo Item Changes
Design a cart with reversible add/remove operations, tracking change history with undo/redo stacks.
Data Structure Designdata-structuresstackstate-management - Data Structure DesignMediumAuto-gradedHierarchical Resource Tree Operations
Tests tree manipulation with parent-child relationships, path reconstruction, and cycle prevention during node relocation.
Data Structure Designtreeshash-mapsgraphscycle-detection - Data Structure DesignMediumAuto-gradedProcess Event Listener Operations
Tests understanding of the observer pattern through ordered listener management, callback registration/removal, and event dispatch simulation.
Data Structure Designobserver-patterndata-structuresstate-management - Data Structure DesignHardAuto-gradedLive String Index Store with Closest-Match Queries
Tests ability to design a data structure that supports streaming character appends, point updates, and O(log N) nearest-occurrence queries over a mutable string.
Data Structure Designordered-settreapbinary-search-treedesign - Data Structure DesignHardAuto-gradedSimulate a Time-Aware Key-Value Store with Transactions
Tests implementation of an in-memory store combining TTL expiration, a logical clock, and atomic single-transaction semantics with rollback.
Data Structure Designhash-maptransactionssimulation - Data Structure DesignEasyAuto-gradedSliding Window Hit Counter
Tests ability to design time-windowed event counters with efficient memory management and query performance using sliding-window techniques.
Data Structure Designqueuesliding-windowdata-structure-design - Data Structure DesignHardAuto-gradedMulti-Consumer Iterator with Shared Buffering
Tests iterator protocols, lazy evaluation, and memory-efficient buffering for multiple independent consumers reading from a single source stream.
Data Structure Designiteratorsgeneratorsmemory-management - Data Structure DesignMediumAuto-gradedBatch Counter Updates with Global Shift and Min Extraction
Tests lazy global offset propagation and min-heap with lazy deletion to efficiently manage counters under bulk increments and minimum extraction.
Data Structure Designheaplazy-propagationdesign - Data Structure DesignMediumAuto-gradedRunning Median Tracker with Dual-Heap Design
Tests the ability to maintain an efficient two-heap structure that yields the current median of a growing integer stream in O(log n) per insertion and O(1) per query.
Data Structure Designheaptwo-heapsdata-streammedian - Data Structure DesignMediumAuto-gradedSimulate Least-Recently-Used Cache Operations
Tests your ability to implement a data structure that maintains access order and performs lookups, updates, and evictions efficiently.
Data Structure Designhash-maplinked-listcacheordered-dict - Data Structure DesignMediumAuto-gradedContiguous Block Allocator with Tag-Based Memory Management
Tests segment tree design for efficiently finding and tracking contiguous free blocks in a memory-like array with logarithmic-time allocation and release operations.
Data Structure Designsegment-treeinterval-managementdata-structure-design - Data Structure DesignMediumAuto-gradedReplay Operations on a Bounded LRU Cache
Tests understanding of least-recently-used eviction by executing a sequence of cache operations and collecting their return values.
Data Structure Designcachelruevictionsimulation - Data Structure DesignMediumAuto-gradedVersioned Social Graph: Follow, Snapshot, and Recommend
Tests data-structure design for a directed follow graph with copy-on-snapshot history and friend-of-friend recommendations ranked by mutual count.
Data Structure Designhash-mapsimulationdesign - Data Structure DesignMediumAuto-gradedCircular Buffer with Fixed Capacity
Tests implementation of a bounded FIFO queue using circular array indexing with constant-time operations.
Data Structure Designqueuecircular-bufferarraydata-structure-design - Data Structure DesignEasyAuto-gradedExecute Turn-Based Movement Commands on a Line
Tests state tracking and rule validation for alternating player moves on a bounded one-dimensional board.
Data Structure Designsimulationstate-machinevalidation