practice a little every day — you've got this ♡
Data Structure Design Interview Problems
Practice 5973 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.
- 5973
- Problems
- 2212
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 121–150 of 375 results
- Data Structure DesignHardAuto-gradedLeftmost-Fit Block Reservation with Owner Release
Simulate a storage pool that reserves the leftmost run of contiguous free cells per request and releases everything an owner holds, using efficient free-run tracking.
Data Structure Designsegment-treesimulationinterval-merginghash-map - Data Structure DesignMediumAuto-gradedTally Unique Words Using Your Own Open-Addressing Table
Count unique strings in a list by building a custom hash table with probing, without using built-in sets, dictionaries, or similar lookup containers.
Data Structure Designhash-tableopen-addressingstringshashing - Data Structure DesignMediumAuto-gradedSliding Window Score Monitor for Support Chats
Process a stream of score updates and queries, returning the rolling average and maximum over the latest score of each chat inside a half-open time window.
Data Structure Designsliding-windowhash-mapqueuelazy-deletion - Data Structure DesignMediumAuto-gradedRolling Mean of Payload Lengths Over a 60-Second Event Window
Process a stream of checksummed events with duplicates and out-of-order timestamps, reporting a running average payload length over a 60-second window using a queue, a set and a running sum.
Data Structure Designdequesliding-windowhash-setstreaming - Data Structure DesignMediumAuto-gradedTrack Busiest Processing Node in Rotating Allocation System
Simulate round-robin package allocation across nodes with cycle resets, capacity limits, and permanent node shutdowns.
Data Structure Designarraysdesign-dssimulation - Data Structure DesignMediumAuto-gradedDesign an In-Memory Database Engine
Simulate an in-memory single-table key-value store supporting lookup, update, and sorted conditional selection queries.
Data Structure Designhash-mapdesignsortingstrings - Data Structure DesignMediumAuto-gradedFuse Two Sensor Pipelines Into One Object History Log
Simulate a tracker that links IDs across two systems, stores observations, and returns time-ordered merged histories, testing union-find style grouping and operation replay.
Data Structure Designunion-finddesignhash-mapsorting - Data Structure DesignMediumAuto-gradedAlias Method Categorical Sampler
Generate discrete random samples according to custom category weights in constant time per sample using Vose's alias algorithm.
Data Structure Designarraysdesign-dsmath-bits - Data Structure DesignHardAuto-gradedState-Tracked Recipe Basket with Bulk Pricing
Simulate a versioned basket engine that aggregates multi-recipe component quantities for bulk discount calculations, supporting mutations and rollback operations.
Data Structure Designdesign-dsarrayshashing - Data Structure DesignMediumAuto-gradedSharded Order Book Simulator with Cancel and Open Lookup
Simulate a sharded order book that routes users with FNV-1a, enforces a one-way status lifecycle, and answers per-user open-order queries in placement order.
Data Structure Designhash-mapsimulationstate-machinehashing - Data Structure DesignMediumAuto-gradedRolling Read/Write Rate Tracker for an In-Memory Dictionary Store
Simulate a key-value store that logs reads and writes with timestamps and answers per-second average rate queries over trailing windows, using compact time buckets.
Data Structure Designdesignsliding-windowdequehash-map - Data Structure DesignMediumAuto-gradedMulti-Channel Message Router with Pluggable Responders
Simulate a command-driven chat engine that dispatches messages to registered responders, keeps per-channel logs and per-responder state, and returns the resulting logs.
Data Structure Designdesignsimulationoophash-map - Data Structure DesignMediumAuto-gradedRisk-Ranked Alert Queue Simulator
Simulate a priority queue of alerts that serves the highest risk first and the oldest first on ties, driven by a list of Put and GetNext commands.
Data Structure Designpriority-queueheapdesignsimulation - Data Structure DesignHardAuto-gradedSimulate a Time-Aware Financial Ledger
Process sequential financial operations with scheduled transfers, account merging, historical snapshot queries, and activity rankings using heaps and binary search.
Data Structure Designdesign-dsheaps-sortingarrays - Data Structure DesignMediumAuto-gradedFrozen-View Integer Set with Independent Cursors
Simulate a mutable integer set whose iterators capture the set's contents at creation time and stay isolated from later changes and from each other.
Data Structure Designdesignhash-setiteratorsnapshot - Data Structure DesignMediumAuto-gradedStateful Banking System Ledger Engine
Simulate an in-memory banking ledger that processes chronologically ordered operations involving balances, leaderboards, delayed cashbacks, and account merges.
Data Structure Designdesign-dsheaps-sortingarrays - Data Structure DesignMediumAuto-gradedCall-Signature Cache with Least-Recently-Used Eviction
Simulate a fixed-capacity LRU cache keyed by a call's positional and keyword arguments, with order-insensitive, type-aware key matching.
Data Structure Designlru-cachehash-mapdoubly-linked-listcanonical-keys - Data Structure DesignMediumAuto-gradedThread-Safe Inventory Management
Simulate concurrent inventory purchases and sales ensuring atomic state updates, preventing negative inventory, and handling invalid operations cleanly.
Data Structure Designdesign-dsarraysconcurrency - Data Structure DesignHardAuto-gradedState-Driven Job Scheduler with DLQ and Dependencies
Simulate an event-driven task queue handling execution states, lease timeouts, retry budgets, dependencies, and dead-letter cascading.
Data Structure Designdesign-dsheaps-sortingtrees-graphsstacks-queues - Data Structure DesignMediumAuto-gradedBanned-Word Review Screener with Per-User Strike Counts
Simulate a stateful screening service driven by an operation log: whole-token, case-insensitive banned-word checks, replaceable word lists, and per-user flagged-review tallies.
Data Structure Designhash-sethash-mapsimulationstrings - Data Structure DesignMediumAuto-gradedLeast Recently Used Storage Simulation
Simulate a fixed-capacity Least Recently Used (LRU) storage engine that processes lookup and insert operations in O(1) time.
Data Structure Designdesign-dslinked-listsarrays - 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 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 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 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 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