practice a little every day — you've got this ♡
Data Structure Design Interview Problems
Practice 5971 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.
- 5971
- Problems
- 2211
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 121–150 of 362 results
- Data Structure DesignMediumModel answerBuild a Persistent Key-Value Shell with Tests and CI
Design a single-class interactive key-value shell that saves to disk, handles bad input, logs errors, accepts new commands easily, and ships with unit tests, a README, and CI.
Data Structure Designoopcliunit-testingpersistence - Data Structure DesignHardModel answerExpiring Resource Credit Ledger with Out-of-Order Events
Design an in-memory compute credit ledger handling expiring grants, usage subtractions with earliest-expiration priority, out-of-order event ingestion, and point-in-time balance queries.
Data Structure Designdesign-dsheaps-sortinggreedy-intervalsarrays - Data Structure DesignMediumModel answerReconcile Cached Coverage Status with Out-of-Order Checks
Build a reconciler that keeps a cached insurance status correct when verification results arrive late, duplicated, or as failures, and that can rebuild the status from full history.
Data Structure Designidempotencyout-of-order eventscache consistencystate reconciliation - Data Structure DesignMediumModel answerLog Test Executions and Query Failure Recovery and Concurrent Failures
Design an event-driven system to track test statuses, calculate minimum recovery durations, and identify the longest continuous window of high concurrent failures.
Data Structure Designdesign-dsgreedy-intervalsarrays - Data Structure DesignMediumModel answerDesigning Dynamic Load Balancers: Round-Robin and Consistent Hashing
Implement a resilient round-robin request balancer that handles dynamic server membership, followed by a consistent hashing router to maintain key affinity.
Data Structure Designdesign-dshashingconcurrencybinary-search - Data Structure DesignMediumModel answerRefactoring and Hardening a Driver Dispatch Service
Identify anti-patterns in legacy dispatch assignment code, implement fixes, introduce domain types, and design for thread-safety.
Data Structure Designrefactoringthread-safetyobject-oriented-designclean-code - Data Structure DesignMediumModel answerBuild Stateful Round-Robin and Consistent Hash Load Balancers
Implement thread-safe Round-Robin and Consistent Hashing balancers supporting health checks and dynamic nodes, then analyze their performance.
Data Structure Designload-balancerconsistent-hashinground-robindata-structure-design - 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 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 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 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 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 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 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 DesignHardModel answerDesign a Time-Series Cloud Credit Ledger
Design an in-memory cloud billing system supporting delayed cashback rebates, account consolidation, point-in-time historical balance queries, and spend leaderboards.
Data Structure DesignData Structure DesignHeapUnion FindBinary Search - Data Structure DesignMediumModel answerBuild a Data-Fetching React Hook and Wire Up a Dashboard UI
Write a React hook that fetches and reshapes API data with loading, error and refetch support, then connect a modal, a collapsible list and action buttons to component state.
Data Structure DesignreacthooksuseEffectasync - Data Structure DesignMediumModel answerDesign a Database Connection Pool
Implement a resource-managing connection pool wrapper that enforces pool limits, reuses idle connections, and handles lease lifecycles safely.
Data Structure Designdesign-dsobject-oriented-designresource-managementconcurrency - Data Structure DesignMediumModel answerTransit Fleet Simulator: Sampling, Seating Limits, and Fast-Lane Riders
Build a bus network simulator: downsample riders by origin-destination pair, board and drop under a capacity cap, validate event logs, and give priority-pass riders precedence.
Data Structure Designsimulationheapstratified-samplingevent-ordering - Data Structure DesignMediumModel answerDesign and Implement Connect Four with Game Logic and State Management
Build a complete two-player Connect Four game on a 6x7 grid, including drop mechanics, win/draw state evaluation, edge-case prevention, and modular state architecture.
Data Structure DesignArraysGame DesignState ManagementData Structures - Data Structure DesignMediumModel answerTuning a Multithreaded C++ Pipeline for Speed and Tail Latency
Explain how you would profile and speed up an existing multithreaded C++ service whose thread pool and queue are given, covering memory, cache, contention, and verification.
Data Structure Designcppperformanceconcurrencyprofiling - Data Structure DesignMediumModel answerThread-Safe Recurring Task Engine
Design and implement a concurrent background scheduler that manages recurring execution intervals, supports execution cancellation, and handles thread-safe termination.
Data Structure Designconcurrencyheapsthreadsdesign - Data Structure DesignMediumModel answerPluggable Filter and Scoring Pipeline for Ticket Listings
Design an extensible object-oriented engine that drops ineligible events with pluggable rules, then orders the rest by a weighted blend of scoring strategies.
Data Structure Designobject-oriented-designstrategy-patternopen-closed-principlesorting - Data Structure DesignMediumModel answerDetect Duplicate Files Safely and Efficiently
Design a filesystem duplicate finder that guards against infinite loops, avoids loading whole files into memory, and applies multi-stage filtering to minimize disk reads.
Data Structure Designfilesystemhashingio-optimizationtraversal - Data Structure DesignMediumModel answerBuild a Per-User Throttle and an In-Memory Event Broadcaster
Write a thread-safe per-user token-bucket throttle and a small topic-based event broadcaster that stays correct under concurrency and survives failing listeners.
Data Structure Designrate-limitingtoken-bucketpub-subconcurrency