practice a little every day — you've got this ♡
Data Structure Design Interview Problems
Practice 5980 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.
- 5980
- Problems
- 2215
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 541–570 of 738 results
- Data Structure DesignMediumAuto-gradedMaintain Contiguous Delivery Sequence and Detect Gaps
Tests managing out-of-order arrivals with sets to track the longest complete prefix and identify missing elements in a sparse range.
Data Structure Designsetstrackingstate-management - Data Structure DesignMediumAuto-gradedTime-Travel Array with Historical Query Support
Design a data structure that tracks an array's evolution through snapshots and answers queries about past states efficiently.
Data Structure Designbinary-searchversioningdata-structures - Data Structure DesignMediumAuto-gradedWord Dictionary with Insert and Query Operations
Tests implementing a character-level trie to handle insert, exact-match lookup, and prefix-existence queries while distinguishing complete words from prefixes.
Data Structure Designtriedata-structuresstring-matching - Data Structure DesignHardAuto-gradedIn-Memory Cell Grid with Formula Chaining
Tests dependency graph design, lazy cache invalidation, recursive formula evaluation, and cycle detection in a grid of named cells.
Data Structure Designdesigngraphssimulation - Data Structure DesignMediumModel answerExtend a Python Abstract Pipeline with a Concrete File Processor
Implement a concrete subclass inside a pre-built abstract framework that streams CSV input, transforms rows to JSON, and self-registers with a CLI factory.
Data Structure Designobject-oriented-designabstract-base-classfile-iostreaming - Data Structure DesignMediumAuto-gradedSliding-Window Traffic Throttle with Dual Limit Rules
Tests sliding-window counting over timestamped event logs using per-source and per-source-destination deque-based rate limiting.
Data Structure Designsliding-windowdequehash-mapsimulation - Data Structure DesignMediumAuto-gradedFour-Card Hand Ranker with Extensible Type System
Tests object-oriented design skills by building a modular, open/closed hand classifier and comparator for a custom four-card game.
Data Structure Designoopdesignsimulation - Data Structure DesignHardModel answerRide-Share Wallet: Credit Vouchers, Zone Surcharges, and Refunds
Simulate 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.
Data Structure Designsimulationpriority-queueinteger-mathstate-machine - Data Structure DesignMediumAuto-gradedMini Spreadsheet: Cell Formulas and Cycle Detection
Tests dependency graph modeling, cycle detection on writes, and correct value propagation across a simple formula-based spreadsheet engine.
Data Structure Designgraphsdfsdesign - Data Structure DesignMediumModel answerEvent-Driven Email Notification System with Account Updates
Build a scheduler that emits subscription notifications in time order, handling plan switches and subscription extensions with deterministic tie-breaking.
Data Structure Designheapssimulationevent-drivenscheduling - Data Structure DesignMediumAuto-gradedShared Token Bucket with Optimistic Concurrency
Tests implementation of a token bucket rate limiter over a versioned key-value store, including lazy replenishment, clock skew tolerance, and CAS-based retry logic.
Data Structure Designdesignconcurrencysimulation - Data Structure DesignMediumModel answerDesign a Lazy Iterator Pipeline with Range and Combinators
Build a pull-based iterator for ranges with configurable steps and endpoints, plus composable transformations like map, filter, zip, take, drop, and chain.
Data Structure Designiteratorslazy-evaluationfunctional-programming - Data Structure DesignHardModel answerBuild a Concurrent Multi-Constraint Rate Limiter
Design a thread-safe class that enforces several independent rate limits simultaneously, with atomic all-or-nothing permit acquisition and rollback on failure.
Data Structure Designconcurrencyrate-limitingsliding-windowatomicity - Data Structure DesignMediumModel answerAsync URL Batch Fetcher with Concurrency Limits
Build an async function that fetches a list of URLs with bounded parallelism, deduplicates identical URLs, preserves input order, and isolates per-URL errors.
Data Structure Designasyncconcurrencypythondeduplication - Data Structure DesignMediumModel answerAlphabet-Coverage Web Crawler with Rate Limiting
Build a crawler that prioritizes unvisited first-letters across a link graph while respecting a configurable requests-per-second ceiling.
Data Structure Designcrawlingrate-limitingpriority-queuededuplication - Data Structure DesignMediumModel answerFour Algorithm Problems: Graphs, Search, Simulation, and Design
Solve four independent problems covering Eulerian path reconstruction, timestamped key-value lookup, ray reflection simulation, and a high-throughput score tracker.
Data Structure Designgraphsbinary-searchsimulationdata-structure-design - Data Structure DesignMediumAuto-gradedGroup Expense Balancer: Greedy vs Optimal Settlement
Tests ability to implement both a greedy two-pointer debt-clearing algorithm and an exact minimum-transaction settlement using memoized recursion.
Data Structure Designgreedymemoizationsimulation - Data Structure DesignHardModel answerBuild a Reference-Counted Pointer from Scratch in C++
Implement a class template SharedPtr<T> that manages heap object lifetime through reference counting, supporting copy, move, reset, and safe self-assignment.
Data Structure DesignC++RAIImemory managementtemplates - Data Structure DesignMediumModel answerExpiring Credit Wallet: Drain Soonest-Expiring First, Halt on Overdraft
Design an in-memory credit ledger that consumes the earliest-expiring balance first and permanently returns None after any overdraft.
Data Structure Designheapgreedysimulationexpiry - Data Structure DesignMediumAuto-gradedSnapshot Reads from a Multi-Version Key-Value Log
Tests 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.
Data Structure Designbinary-searchhash-tabledesign - Data Structure DesignMediumModel answerBuild a Reference-Counted Smart Pointer in C++
Design and implement a shared ownership pointer with automatic memory management using reference counting and RAII principles.
Data Structure Designc++memory-managementraiimove-semantics - Data Structure DesignMediumModel answerBuild a nested namespace tree from dotted model parameter names
Convert a flat list of dotted parameter keys like layer indices into a grouped nested dictionary, collecting nonconforming, duplicate, and structurally conflicting keys separately.
Data Structure Designstringshashingtrieedge-cases - Data Structure DesignMediumAuto-gradedWorker Pay Rate Ledger with Interval Cost Queries
Tests piecewise-constant function integration, lazy evaluation, and interval clipping inside a simulated in-memory billing system.
Data Structure Designdesignintervalssimulation - Data Structure DesignMediumAuto-gradedParcel Locker Manager with History Tracking
Build a locker allocation system that assigns the smallest free locker, validates pickups, and remembers the last package stored in each locker.
Data Structure Designheapsimulationdata-structure-design - Data Structure DesignHardAuto-gradedTimestamped Press-and-Release Event Classifier
Tests per-button state tracking and timing logic over an ordered event stream to classify completed press-release pairs by hold duration.
Data Structure Designhash-mapevent-streamstate-machine - Data Structure DesignMediumModel answerBuild a Thread-Safe Future: Chaining and Parallel Fan-In
Implement a generic async future primitive supporting blocking get, callback chaining, and a barrier that resolves when all parallel futures complete.
Data Structure Designconcurrencyfuturesthreadingcallbacks - Data Structure DesignMediumAuto-gradedSimulate a Frequency-Based Eviction Cache
Tests 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.
Data Structure Designdata structuressimulationcache - Data Structure DesignMediumModel answerMulti-Level Parking Facility: Class Structure and Operations
Model a parking facility with levels and sized spots, supporting vehicle entry/exit, spot allocation by compatibility, and availability queries.
Data Structure Designobject-oriented-designSOLID-principlesdesign-patternsclass-modeling - Data Structure DesignHardAuto-gradedMulticore Thermal Simulation with Adaptive Cooling Selection
Tests discrete-event simulation skills: delayed load semantics, proportional passive cooling with vibration penalties, fixed-point active cooling selection, and transition-only status reporting.
Data Structure Designsimulationstate-machinefixed-point - Data Structure DesignMediumModel answerAsync Query Client for a Cloud Data Warehouse
Design and implement a lightweight client that submits async SQL queries, polls for status, retrieves results, and handles errors and credentials safely.
Data Structure Designapi-designasyncerror-handlingstate-machine