practice a little every day — you've got this ♡
Data Structure Design Interview Problems
Practice 5986 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.
- 5986
- Problems
- 2219
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 301–330 of 739 results
- Data Structure DesignMediumAuto-gradedVersioned Network Edge Tracker
Process a stream of edge insertions, snapshot triggers, and historical adjacency queries for a dynamic graph.
Data Structure Designdesign-dsarraystrees-graphs - Data Structure DesignHardAuto-gradedDesign a Custom Key-Value Map
Execute a series of map operations (put, get, remove) by simulating a hash map without using built-in dictionaries or sets.
Data Structure Designarraysdesign-dshash-table - Data Structure DesignEasyAuto-gradedRolling Ten-Minute Error Counter by Endpoint Prefix
Replay a log of error-recording and alert-check operations, grouping errors by URL prefix and counting those in an inclusive 600-second window against a strict threshold.
Data Structure Designdesignbinary-searchhash-mapsliding-window - 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 DesignMediumAuto-gradedTypo-Tolerant Word Lookup with One Edit
Answer batches of lookups against a fixed word list, returning every word within Levenshtein distance 1 of the query, using a deletion-based hash index.
Data Structure Designhash-mapedit-distancestringsindexing - Data Structure DesignEasyAuto-gradedSimulate a Constant-Time LRU Eviction Cache
Process a series of lookup and insert requests on a fixed-size Least Recently Used (LRU) key-value cache in O(1) time per operation.
Data Structure Designdesign-dslinked-listsarrays - 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 DesignEasyAuto-gradedMost Frequent Follower Lookup with Command Replay
Simulate a train/predict command stream for a word-follower model, precomputing the top follower per word so each prediction is a single hash lookup, with a precise tie-break rule.
Data Structure Designhash-mapdesignstringssimulation - Data Structure DesignMediumAuto-gradedSimulate 2048 Moves with Scripted Tile Spawns
Simulate a 4x4 sliding-tile merge game with scripted spawns, skipping spawns on no-op moves, then report the final board and whether any move remains.
Data Structure Designsimulationmatrixstate-managementdeterministic-testing - 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 DesignMediumAuto-gradedSimulate a Tiny Hierarchical File Store from a Command Log
Replay a command log against an in-memory directory tree, with auto-created parent folders, file appends, reads and sorted listings.
Data Structure Designdesigntrietreehash-map - Data Structure DesignMediumAuto-gradedHierarchical Storage Simulator with Auto-Renamed Duplicates
Simulate an in-memory directory tree with auto-created folders, numbered duplicate file names that respect extensions, content lookup, and sorted listings.
Data Structure Designdesignhash-mapstring-parsingsimulation - Data Structure DesignHardAuto-gradedCache, Quota Gate and Burst Counter: Batch Operation Runner
Simulate a batch of operations on an O(1) LFU cache, a fixed-window per-user quota check, and a two-pointer peak request counter.
Data Structure Designlfu-cacheordered-dictrate-limitingtwo-pointers - 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 DesignHardAuto-gradedInteractive Time Calendar with Pagination and Range Queries
Process dynamic interval updates, range queries, and ordered pagination operations efficiently.
Data Structure Designtrees-graphsdesign-dsgreedy-intervals - Data Structure DesignMediumAuto-gradedIdentify Winning Move in Bottom-Inserted Drop Game
Simulate a custom grid game with bottom-insertion pushes to detect the earliest turn that forms a line of length k.
Data Structure Designarrayshash-tablesimulationdesign-ds - 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 DesignMediumAuto-gradedReplay a Bounded Recency Store from an Operation Log
Simulate a fixed-size store that discards its stalest entry on overflow, answering lookups in O(1) each by pairing a hash map with a doubly linked list.
Data Structure Designhash-mapdoubly-linked-listlru-cachesimulation - 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 - Data Structure DesignMediumModel answerSimulate Message Spreading in an Orbital Network
Simulate timed, discrete-event message propagation across a satellite graph and fire report callbacks in exact time and ID order.
Data Structure Designtrees-graphsheaps-sortingdesign-ds - Data Structure DesignMediumModel answerBuild a Bounded, Thread-Safe Resource Pool with Timeouts
Implement a thread-safe pool that lazily creates up to N connections, reuses healthy ones, blocks callers with a deadline when exhausted, and shuts down cleanly.
Data Structure Designconcurrencythread-safetycondition-variableresource-pool - Data Structure DesignMediumAuto-gradedRun a Command Log on a Recency Cache with Live Mean
Simulate a fixed-capacity least-recently-used cache from a command log, answering lookups and the mean of stored values, each in expected constant time.
Data Structure Designlru-cachehash-mapdoubly-linked-listrunning-sum - Data Structure DesignMediumModel answerConcurrent Least-Recently-Used Cache with Constant-Time Operations
Build a fixed-capacity cache with O(1) lookup, update and eviction by recency, then make it safe for many threads and state exactly what consistency it guarantees.
Data Structure Designlru-cachehash-mapdoubly-linked-listconcurrency - Data Structure DesignMediumAuto-gradedEvaluate Nested Comparison Rules Over a List of Records
Evaluate a nested rule tree of greater-than, less-than, AND and OR nodes against records, keeping matches in order and treating missing or mismatched fields as false.
Data Structure Designrecursiontree-evaluationfilteringvalidation - Data Structure DesignMediumModel answerBuild an In-Memory Hierarchical File System with CRUD Support
Design and implement an in-memory key-value store structured as a file system tree supporting create, set, get, and cascade delete operations with path validation.
Data Structure Designdesign-dstrees-graphsstrings - Data Structure DesignMediumAuto-gradedSimulate a Bounded Recency-Evicting Key-Value Store
Replay a batch of get/put commands against a fixed-capacity store that discards its least recently used key on overflow, with O(1) average cost per command.
Data Structure Designlru-cachehash-maplinked-listsimulation