practice a little every day — you've got this ♡
Data Structure Design Interview Problems
Practice 5976 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.
- 5976
- Problems
- 2213
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 241–270 of 375 results
- Data Structure DesignMediumAuto-gradedFreelance Crew Pay Tracker With Rolling Settlements
Tests the ability to design an in-memory ledger class driven by an operation list, maintaining running cost totals and an idempotent pay-cutoff pointer.
Data Structure Designdesignsimulationhash-map - Data Structure DesignMediumAuto-gradedVersioned Key-Value Store with Global Version Tracking
Implement a key-value store where each write increments a global version counter and reads retrieve values by version using binary search.
Data Structure Designbinary-searchdata-structuresversioning - Data Structure DesignMediumAuto-gradedSimulate a Linked List with Iterator and Transform
Tests ability to implement a doubly-linked list supporting sequential iteration and non-mutating element-wise transformation via a command-driven simulation.
Data Structure Designlinked-listiterator-patternhigher-order-functions - Data Structure DesignMediumAuto-gradedFixed-Capacity Eviction Cache with Recency Tracking
Tests whether you can design a cache that evicts the least recently accessed entry in O(1) time by combining a hash map with an ordered structure.
Data Structure Designhash-maplinked-listdesigncache - Data Structure DesignMediumAuto-gradedBoard Game: Detect k-in-a-Row on a Rectangular Grid
Tests incremental win detection on an m×n board by tracking consecutive run lengths at endpoints to check for k-in-a-row in O(1) per move.
Data Structure Designdesignarrayssimulation - Data Structure DesignMediumAuto-gradedFilter Stream Events by Registered Patterns
Tests inverted index design and set-based matching to efficiently find which registered word patterns are satisfied by incoming events.
Data Structure Designhash-tablessetsinverted-index - Data Structure DesignMediumAuto-gradedFrequency-Based Cache Eviction
Build a cache that tracks access counts and evicts the least-used item, breaking ties by recency, all in constant time.
Data Structure Designhash-mapdoubly-linked-listcachedesign - Data Structure DesignMediumAuto-gradedScore Tracker with Ranking and Top-K Queries
Tests the ability to maintain ordered scores with efficient updates and rank lookups using augmented balanced search trees.
Data Structure Designbinary-search-treeorder-statisticsdata-structures - Data Structure DesignMediumAuto-gradedVersioned Key-Value Log with Point-in-Time Reads
Tests per-key version tracking and efficient predecessor search to retrieve the most recent value written at or before any queried timestamp.
Data Structure Designbinary searchhash mapversioning - Data Structure DesignMediumAuto-gradedAccess-Tracked Key-Value Store
Build a dictionary that counts how many times each key has been retrieved, testing hash map design and state management.
Data Structure Designhash-mapdesignsimulation - Data Structure DesignMediumAuto-gradedRound-Robin Load Balancer with Capacity and Shutdown
Tests stateful system simulation with round-robin target selection, connection lifecycle tracking, capacity enforcement, and target shutdown with eviction ordering.
Data Structure Designsimulationhash-tableround-robinstateful - Data Structure DesignMediumAuto-gradedDisjoint Set: Merge Nodes and Query Connectivity
Tests ability to implement Union-Find with union by rank and path compression, supporting merge, connectivity, and component-count queries.
Data Structure Designunion-finddisjoint-setgraphdata-structure-design - Data Structure DesignHardAuto-gradedIP Access Control with CIDR Matching
Tests binary trie implementation for efficient IP prefix matching with CIDR notation and rule subsumption optimization.
Data Structure Designtriebit-manipulationnetwork-programming - Data Structure DesignMediumAuto-gradedParcel Attribute Store with TTL and Prefix Queries
Simulate a timestamped key-value attribute store with overwrite, conditional update, sorted prefix listing, and per-attribute expiry.
Data Structure Designhash-mapsimulationsortingexpiry - Data Structure DesignMediumAuto-gradedReplayable Library Lending Operations
Simulate a book catalog with case-insensitive title/author search and atomic borrow/return state transitions replayed from an operation log.
Data Structure Designhash-mapsimulationstring-matchingstate-machine - Data Structure DesignHardAuto-gradedRolling-Window Chat Activity Tracker
Build a bounded-memory sliding-window aggregator answering distinct-chat, distinct-user, and message-total queries from an operation log in amortized O(1).
Data Structure Designsliding-windowdequehash-mapreference-counting - Data Structure DesignMediumAuto-gradedBilling Reconciliation: Match Payments to Invoices in Three Stages
Tests incremental lookup design by matching payments to invoices via explicit ID, then earliest-dated exact-amount fallback, then a forgiveness range, with closed-invoice tracking throughout.
Data Structure Designhash-mapheapsegment-tree - Data Structure DesignEasyAuto-gradedBuild a Fixed-Capacity Recency-Ordered Cache
Tests whether you can design a cache that evicts the least-recently-touched entry in O(1) time using a hash map paired with an ordered structure.
Data Structure Designhash-maplinked-listcacheOrderedDict - Data Structure DesignMediumAuto-gradedUnified Entity Log with Mergeable ID Groups
Tests ability to design a data structure that resolves multiple system-assigned IDs to a single entity and returns a chronologically merged observation history.
Data Structure Designunion-finddesignsorting - Data Structure DesignMediumAuto-gradedTwo-Way Link Mapper: Shorten and Restore URLs
Tests ability to design a bidirectional hash map structure that assigns stable short identifiers to long URLs and retrieves originals in O(1).
Data Structure Designhash-mapdesignstrings - Data Structure DesignMediumAuto-gradedSimulate a Bounded Cache That Forgets the Least-Used Entry
Tests O(1) design of a fixed-size recency-ordered cache: correct eviction order, recency refresh on reads and writes, and update-without-evict semantics.
Data Structure Designhash-maplinked-listcachedesign - Data Structure DesignMediumAuto-gradedOrder State Machine with Transition Validation
Tests finite state machine implementation with strict transition rules and rejection of invalid state changes.
Data Structure Designstate-machinevalidationdata-structures - Data Structure DesignMediumAuto-gradedVariable Registry With Deep Reference Expansion and Cycle Detection
Tests recursive variable substitution with memoization, cycle detection across direct and indirect references, and clean handling of undefined variable references.
Data Structure Designstringsrecursionhash-mapcycle-detection - Data Structure DesignMediumAuto-gradedRunning Median via Dual-Heap Simulation
Tests whether a candidate can maintain a live median over an integer stream in O(log n) per insert using two heaps balanced around the midpoint.
Data Structure Designheapsdata-structure-designonline-algorithms - Data Structure DesignMediumAuto-gradedOut-of-Order Loan Event Ledger with Fee-First Payments
Tests ordered insertion, fee-before-principal payment allocation, and efficient forward-propagation of balance changes when events arrive out of sequence.
Data Structure Designsimulationsorted-insertdata-structure-design - Data Structure DesignHardAuto-gradedIn-Memory Row Store with Filter, Sort, and Projection
Tests ability to build a stateful table abstraction that processes insert and query operations with filtering, sorting, and column projection.
Data Structure Designdesignsimulationsorting - Data Structure DesignMediumAuto-gradedSimulate a Fixed-Capacity Recency-Eviction Cache
Tests whether you can combine a hash map and ordered structure to implement O(1) get/put with least-recently-used eviction on a bounded cache.
Data Structure Designhash-maplinked-listcachedesign - Data Structure DesignMediumAuto-gradedIn-Memory Spreadsheet with Formula Evaluation and Cycle Detection
Build a spreadsheet system that stores values, evaluates formulas referencing other cells, and prevents circular dependencies through pre-write validation.
Data Structure Designgraphdependency-trackingcycle-detection - Data Structure DesignHardAuto-gradedExact-Phrase Lookup Across a Document Collection
Tests building a positional inverted index so that multi-word phrases can be found by exact word sequence across many documents with repeated queries handled efficiently.
Data Structure Designinverted-indexstring-searchhashing - Data Structure DesignMediumAuto-gradedHash-Tree Diff: Detect File Changes Between Two Snapshots
Tests ability to build a bottom-up Merkle hash tree from file path/content mappings and use subtree hash pruning to efficiently classify added, modified, and deleted files.
Data Structure Designhashingtrees-graphsrecursion