practice a little every day — you've got this ♡
Data Structure Design Interview Problems
Practice 5985 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.
- 5985
- Problems
- 2218
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 271–300 of 739 results
- Data Structure DesignMediumModel answerBuild an In-Memory Playlist Engine with a Three-Slot Favorites Set
Design a thread-safe in-memory audio player with a queue, history, and a favorites list capped at three that rejects overflow deterministically rather than evicting.
Data Structure Designdesigndequehash-mapconcurrency - Data Structure DesignMediumModel answerBuild a Plain-Text Notes REST API and Black-Box Test Plan
Design a small CRUD HTTP service that accepts raw text bodies but replies in JSON, then explain how to test an unseen function from its specification alone.
Data Structure Designrest-apihttp-status-codesunit-testingflask - Data Structure DesignMediumModel answerEfficient Large File Tailer and Sensor Heartbeat Monitor
Read the last N lines of a huge file using reverse chunk seeking, and track active devices using an OrderedDict for fast sliding window health queries.
Data Structure Designfile-iosliding-windowordered-dictsystem-design-ds - Data Structure DesignMediumAuto-gradedRolling Window Stats: Unique Senders and Peak Message Size
Replay a list of operations on a fixed-size sliding window, reporting the distinct sender count and the largest payload size after each insertion.
Data Structure Designsliding-windowdequehash-mapheap - Data Structure DesignMediumAuto-gradedPrefix-Compressed Trie for Integer Sequences
Simulate operations on a prefix-compressed radix tree storing integer sequences, supporting sequence insertions and depth-first tree serialization.
Data Structure Designradix-treetriedata-structure-designtrees - Data Structure DesignMediumAuto-gradedEscrow-Style Ledger with Expiring Transfers and Account Merging
Simulate an in-memory ledger with held transfers that expire after a day, account merging, and a ranking of accounts by completed outgoing totals.
Data Structure Designsimulationhash-mapheapstate-management - Data Structure DesignMediumAuto-gradedRolling Mean Over the Latest K Readings
Simulate a rolling-window mean over a stream of readings, handling the warm-up phase and keeping floating-point error from accumulating across long streams.
Data Structure Designsliding-windowqueuefloating-pointsimulation - Data Structure DesignEasyAuto-gradedSimulate Rate Limiter Decisions
Simulate a thread-safe fixed-window rate limiter processing a sequence of request timestamps.
Data Structure Designdesignsimulationarrays - Data Structure DesignHardModel answerThread-Safe Idempotency Key Processor
Design a thread-safe idempotency manager that executes tasks at most once per key, blocks concurrent callers, caches results with TTL, and cleans up expired records efficiently.
Data Structure Designconcurrencycachingdesigndata-structures - Data Structure DesignMediumModel answerDesign a Spreadsheet Data Model with Dependent Cell Evaluation
Design the internal data structures and API for a spreadsheet engine supporting raw inputs, computed values, dependency tracking, and formula evaluation.
Data Structure DesignData Structure DesignGraphCachingDependency Tracking - Data Structure DesignEasyAuto-gradedSimulate a Forward-Only Row Cursor
Simulate a forward-only cursor over a list of rows, where a peek call is side-effect free and an advance call returns the next row or None at the end.
Data Structure Designsimulationiteratorcursordesign - Data Structure DesignMediumModel answerDesign a Multi-Tenant Security Event Enrichment Engine
Design and implement an in-memory pipeline to enrich telemetry events and evaluate dynamic suppression rules with multi-tenant scoping and fault tolerance.
Data Structure Designdesignobject-orientedmulti-tenancypipelines - Data Structure DesignHardAuto-gradedRunning Bit-Entropy of a Token Feed with Stable Updates
Maintain Shannon entropy of a growing token stream with constant-time updates and queries, avoiding catastrophic cancellation when one token dominates.
Data Structure Designstreamingnumerical-stabilityhash-mapentropy - Data Structure DesignMediumModel answerDesign a Support Agent Dispatcher with Interruption Handling
Design an in-memory dispatch engine that pairs queued support tickets with available agents, extended to handle mid-task agent breaks and fair ticket re-queuing.
Data Structure Designdesign-dsstacks-queuesheaps-sorting - Data Structure DesignMediumModel answerFix a Rotating Server Picker, Then Build a Hash Ring
Find and fix the bugs in a round-robin server selector that handles pool changes and threads, then build a consistent-hash ring with virtual nodes that keeps key movement minimal.
Data Structure Designload-balancingconsistent-hashingdebuggingconcurrency - Data Structure DesignMediumModel answerBuild a Weekly Schedule Grid
Construct an interactive 7-day schedule grid with hour slots, allowing users to add titled events via a clean, state-driven dialog without duplicate data sources.
Data Structure Designfrontendreactstate-managementui-components - Data Structure DesignMediumAuto-gradedSimulate a Ring Buffer Queue from a Command Log
Replay a list of queue commands against a bounded ring buffer, returning each command's result while handling wrap-around, full and empty states correctly.
Data Structure Designcircular-queuering-buffersimulationmodular-arithmetic - Data Structure DesignMediumModel answerBuild an In-Memory Database with Querying and Indexing
Design and write code for an in-memory document store that supports dynamic schemas, predicate filtering, projection, ordering, and index optimization.
Data Structure Designin-memory-dbindexingdata-structuresdata-structure-design - Data Structure DesignMediumModel answerConcurrency Safety, Deadlocks, and Array vs Linked List Tradeoffs
Four short fundamentals questions: what makes code safe under concurrent use, what a deadlock is, how to handle deadlocks, and how contiguous arrays compare with pointer-based linked lists.
Data Structure Designconcurrencythread-safetydeadlockarrays - Data Structure DesignEasyAuto-gradedReplay Keyed Updates and Report Per-Group Peak Values
Simulate a log of keyed insert and query commands, keeping a running maximum for each key so single-key and all-key peak queries are answered without rescanning data.
Data Structure Designhash-mapsimulationrunning-maximumdesign - Data Structure DesignMediumModel answerBuilding a Slab Pool for Uniform Objects with Alignment Safety
Design a pool allocator that carves equal-sized slots from slabs, hands them out via an intrusive free list in O(1), respects alignment, and packs 9-byte payloads sensibly.
Data Structure Designmemory-allocatorslabfree-listalignment - Data Structure DesignMediumAuto-gradedExecute Sequence of LRU Cache Instructions
Simulate a Least Recently Used (LRU) cache supporting fast lookups, insertions, updates, and capacity evictions across a series of operations.
Data Structure Designhash-tabledoubly-linked-listdesign - Data Structure DesignMediumAuto-gradedSerialize and Split Key-Value Store Payload
Encodes a dictionary mapping string keys to string values into a binary protocol payload and splits it into fixed-size byte chunks.
Data Structure Designencodingbinarystringsdesign-ds - Data Structure DesignEasyAuto-gradedReplay a Command Script and Record Box State After Each Step
Simulate an ordered list of color, delay and move commands on a box, tracking cumulative position and total waited time, and return a state snapshot after every command.
Data Structure Designsimulationstate-machinearraysmethod-chaining - Data Structure DesignMediumAuto-gradedAggregate Executed Call Sequences across Threads
Simulate an execution stream aggregator tracking stack call frequency across threads with custom tie-breaking rules.
Data Structure Designdesign-dsarrayshash-table - Data Structure DesignMediumAuto-gradedReplay Path Insertions and Filename Lookups on a Component Trie
Simulate an in-memory path trie driven by a list of add and search operations, with iterative traversal, path normalization, and exact rules for what counts as a file.
Data Structure Designtrietree-traversaliterative-dfssimulation - Data Structure DesignMediumAuto-gradedReplay a Bounded Recency Store from an Operation Log
Simulate a fixed-size key-value store that discards the least recently touched entry when full, by replaying a log of operations and returning each result.
Data Structure Designhash-maplinked-listsimulationcache - Data Structure DesignMediumModel answerDynamic Anagram Collection Tracker with Group Size Optimization
Design a class to insert, remove, and query the largest group of anagram words in real time, exploring performance trade-offs for read and write loads.
Data Structure Designdesign-dsstringsarrays - Data Structure DesignMediumAuto-gradedQuota-Limited Storage Simulator with Staging and Snapshots
Simulate a per-user file store with staged uploads, quota checks, ranked prefix queries, and atomic snapshot restores under two conflict policies.
Data Structure Designdesignhash-mapsimulationsorting - Data Structure DesignMediumAuto-gradedSliding-Window Leaderboard Replay Simulator
Simulate a class that logs timestamped events and reports the K most frequent IDs in a closed time window, with out-of-order events and queries.
Data Structure Designdesignbinary-searchhash-mapsorting