Topic
Data Structure Design interview problems
Caches, iterators, rate limiters and custom containers. 737 original problems, each with hidden test cases you can run in the browser.
53 easy587 medium97 hard
Showing 571–600 of 737 results
Implement a concurrent data structure that tracks latency measurements and computes approximate percentiles over a rolling time window with bounded memory.
Model answerconcurrencypercentileshistogramsliding-windowTests object-style thinking, round-robin dealing, and deterministic simulation of a card game where each round's highest card wins all played cards.
Auto-gradedsimulationqueuesgame-designProcess a stream of orders and restocks against live inventory, fulfilling backorders in arrival order before replenishing on-hand stock.
Model answerhash-mapqueuesimulationamortized-analysisBuild an in-memory banking service supporting accounts, transaction history, and two-party transfers that only settle when the recipient explicitly accepts.
Model answerconcurrencyidempotencystate-machineobject-oriented-designTests 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.
Auto-gradedlinked-listshash-mapcachelruBuild a class that collapses and restores indentation-defined code blocks, tracking nested fold state and remapping display line numbers after each operation.
Model answersimulationmonotonic-stackdata-structure-designImplement an async function that resolves true the moment any concurrent task returns true, cancelling all remaining work immediately.
Model answerasyncioconcurrencycancellationpythonTests the ability to simulate a versioned key-value store by replaying a sequence of set/delete operations and answering point-in-time key lookups.
Auto-gradeddata structuressimulationhash mapTests understanding of LRU eviction policy, composite key normalization, and cache statistics tracking through command simulation.
Auto-gradedlru-cachehashingordered-dictdata-structuresDesign and implement a versioned in-memory notebook system supporting CRUD, case-insensitive search, user management, and full state rollback via a change log.
Model answerversioningooprollbackhashmapTests ability to build a double-ended queue on a ring-indexed array that doubles in capacity when full, keeping all operations amortized O(1).
Auto-gradeddequecircular-arrayamortized-analysisBuild a React component that displays a large editable grid, evaluates cell formulas with references, detects cycles, and renders only visible rows.
Model answerreactvirtualizationmemoizationdependency-graphDesign a data structure that supports adding, removing, and uniformly sampling integer values, all in average O(1) time with no duplicates.
Model answerhash maparrayrandomizationdata structure designTests data structure design, time-based expiration semantics, and clean handling of missing or stale entries in an in-memory cache.
Auto-gradedhash-tabletime-simulationexpirationcache-design- Digit Hand ShowdownMedium
Classify numeric hands by frequency patterns with custom ranking, then break ties using positional comparison without sorting.
Auto-gradedobject-oriented-designpattern-matchingextensibility Build a thread-safe scheduler that accepts jobs with dependencies, identifies runnable jobs, and tracks state transitions through success and failure.
Model answerstate-machinedependency-graphconcurrencysystem-designTests building a session-key store with TTL-based lazy eviction using a hash map and min-heap to process a sequence of operations.
Auto-gradedheaphash-maplazy-deletionsimulationTests efficient gap tracking in a sequential ID space using sets and amortized range updates.
Auto-gradedsetrange-trackingamortized-analysisBuild a computation system where cells hold values or formulas referencing other cells, detecting circular dependencies before they corrupt state.
Model answergraphstopological-sortcycle-detectionTests ability to maintain ordered sequences with efficient prefix-sum queries and positional insertions using balanced tree structures.
Auto-gradedbinary-search-treeprefix-sumdata-structure-designDesign a data structure for a tree where nodes can be read, modified, and traversed, with an LRU cache for fast access and an undo stack for reverting changes.
Model answerlru-cachetree-traversalcommand-patternundo-redoTests heap-based priority scheduling with tie-breaking and recursive-descent expression parsing with variable substitution.
Auto-gradedheapparsingdesignTests ability to model a rate-limiting algorithm with time-based decay, capacity bounds, and precise edge-case handling.
Auto-gradedrate-limitingsimulationstate-machineModel a shopping cart in object-oriented code: add, update, and remove items, compute an exact total, and handle edge cases consistently.
Model answerobject-oriented designpythonmoney arithmeticTests data structure design by building an in-memory cache that removes the least recently accessed entry when full.
Auto-gradedhash-maplinked-listcacheeviction-policyDesign a multiset supporting constant-time insert, remove, and random selection where each element's pick probability is proportional to its frequency.
Auto-gradedhash-maparraysrandomizationdata-structure-designTests 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.
Auto-gradedstackheaplinked-listlazy-deletionTests command-pattern operation execution, input validation, atomic state transitions, and maintaining per-entity audit logs.
Auto-gradedsimulationvalidationstate-managementDesign an in-memory file manager tracking per-user storage limits, file operations, pattern matching, and size adjustments with atomic quota enforcement.
Auto-gradedhash-tablessimulationdesignBuild a Python LRU memoization cache with correct argument-key normalization, then add crash recovery via an append-only log with torn-write handling.
Model answerlru-cachememoizationcrash-recoverywrite-ahead-log