Topic
Data Structure Design interview problems
Caches, iterators, rate limiters and custom containers. 738 original problems, each with hidden test cases you can run in the browser.
53 easy588 medium97 hard
Showing 541–570 of 738 results
Tests managing out-of-order arrivals with sets to track the longest complete prefix and identify missing elements in a sparse range.
Auto-gradedsetstrackingstate-managementDesign a data structure that tracks an array's evolution through snapshots and answers queries about past states efficiently.
Auto-gradedbinary-searchversioningdata-structuresTests implementing a character-level trie to handle insert, exact-match lookup, and prefix-existence queries while distinguishing complete words from prefixes.
Auto-gradedtriedata-structuresstring-matchingTests dependency graph design, lazy cache invalidation, recursive formula evaluation, and cycle detection in a grid of named cells.
Auto-gradeddesigngraphssimulationImplement a concrete subclass inside a pre-built abstract framework that streams CSV input, transforms rows to JSON, and self-registers with a CLI factory.
Model answerobject-oriented-designabstract-base-classfile-iostreamingTests sliding-window counting over timestamped event logs using per-source and per-source-destination deque-based rate limiting.
Auto-gradedsliding-windowdequehash-mapsimulationTests object-oriented design skills by building a modular, open/closed hand classifier and comparator for a custom four-card game.
Auto-gradedoopdesignsimulationSimulate a ride-share payment ledger that drains expiring vouchers in priority order, applies zone-based surcharges to card charges, and splits refunds between card and new store credit.
Model answersimulationpriority-queueinteger-mathstate-machineTests dependency graph modeling, cycle detection on writes, and correct value propagation across a simple formula-based spreadsheet engine.
Auto-gradedgraphsdfsdesignBuild a scheduler that emits subscription notifications in time order, handling plan switches and subscription extensions with deterministic tie-breaking.
Model answerheapssimulationevent-drivenschedulingTests implementation of a token bucket rate limiter over a versioned key-value store, including lazy replenishment, clock skew tolerance, and CAS-based retry logic.
Auto-gradeddesignconcurrencysimulationBuild a pull-based iterator for ranges with configurable steps and endpoints, plus composable transformations like map, filter, zip, take, drop, and chain.
Model answeriteratorslazy-evaluationfunctional-programmingDesign a thread-safe class that enforces several independent rate limits simultaneously, with atomic all-or-nothing permit acquisition and rollback on failure.
Model answerconcurrencyrate-limitingsliding-windowatomicityBuild an async function that fetches a list of URLs with bounded parallelism, deduplicates identical URLs, preserves input order, and isolates per-URL errors.
Model answerasyncconcurrencypythondeduplicationBuild a crawler that prioritizes unvisited first-letters across a link graph while respecting a configurable requests-per-second ceiling.
Model answercrawlingrate-limitingpriority-queuededuplicationSolve four independent problems covering Eulerian path reconstruction, timestamped key-value lookup, ray reflection simulation, and a high-throughput score tracker.
Model answergraphsbinary-searchsimulationdata-structure-designTests ability to implement both a greedy two-pointer debt-clearing algorithm and an exact minimum-transaction settlement using memoized recursion.
Auto-gradedgreedymemoizationsimulationImplement a class template SharedPtr<T> that manages heap object lifetime through reference counting, supporting copy, move, reset, and safe self-assignment.
Model answerC++RAIImemory managementtemplatesDesign an in-memory credit ledger that consumes the earliest-expiring balance first and permanently returns None after any overdraft.
Model answerheapgreedysimulationexpiryTests 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.
Auto-gradedbinary-searchhash-tabledesignDesign and implement a shared ownership pointer with automatic memory management using reference counting and RAII principles.
Model answerc++memory-managementraiimove-semanticsConvert a flat list of dotted parameter keys like layer indices into a grouped nested dictionary, collecting nonconforming, duplicate, and structurally conflicting keys separately.
Model answerstringshashingtrieedge-casesTests piecewise-constant function integration, lazy evaluation, and interval clipping inside a simulated in-memory billing system.
Auto-gradeddesignintervalssimulationBuild a locker allocation system that assigns the smallest free locker, validates pickups, and remembers the last package stored in each locker.
Auto-gradedheapsimulationdata-structure-designTests per-button state tracking and timing logic over an ordered event stream to classify completed press-release pairs by hold duration.
Auto-gradedhash-mapevent-streamstate-machineImplement a generic async future primitive supporting blocking get, callback chaining, and a barrier that resolves when all parallel futures complete.
Model answerconcurrencyfuturesthreadingcallbacksTests 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.
Auto-gradeddata structuressimulationcacheModel a parking facility with levels and sized spots, supporting vehicle entry/exit, spot allocation by compatibility, and availability queries.
Model answerobject-oriented-designSOLID-principlesdesign-patternsclass-modelingTests discrete-event simulation skills: delayed load semantics, proportional passive cooling with vibration penalties, fixed-point active cooling selection, and transition-only status reporting.
Auto-gradedsimulationstate-machinefixed-pointDesign and implement a lightweight client that submits async SQL queries, polls for status, retrieves results, and handles errors and credentials safely.
Model answerapi-designasyncerror-handlingstate-machine