Topic
Data Structure Design interview problems
Caches, iterators, rate limiters and custom containers. 737 original problems, each with hidden test cases you can run in the browser.
53 easy587 medium97 hard
Showing 721–737 of 737 results
Implement a console-based naval battle game where two players configure their fleets through text input, then exchange fire until one side is eliminated.
Model answerobject-oriented-designinput-validationstate-managementBuild a stateful stream processor that validates payment records, detects velocity and spending anomalies, and produces fixed-width audit logs.
Auto-gradedsimulationparsingsliding-windowBuild an in-memory banking system that processes timed fund transfers deterministically and consolidates accounts with automatic transaction rerouting.
Auto-gradedunion-findsimulationsortingBuild a function to find whole-word keyword matches in text, then design an in-memory file system with directory and file operations.
Model answerstring-processingdata-structurestreedesignCompare arrays and hash maps across time complexity, memory, and cache behavior, then choose the right structure for a sparse integer-keyed active set.
Model answerhash-maparraymemorycacheImplement thread-safe cache retrieval that deduplicates simultaneous requests for identical keys while maintaining parallelism across distinct keys.
Model answerconcurrencycachingsynchronizationBuild a web interface that manages list state, handles form submission with proper error recovery, integrates with APIs, and maintains data consistency.
Model answerfrontendstate-managementform-validationapi-integrationImplement a union-find solution to identify and capture O regions that don't reach the board's edges, testing disjoint-set design and 2D-to-1D index mapping.
Auto-gradedunion-finddisjoint-setgridconnectivityTests tree traversal and subtree aggregation by computing cumulative scores bottom-up across a forest of sponsor-recruit relationships.
Auto-gradedtrees-graphsdesign-dsstacks-queuesTests the ability to implement a sliding-window rate limiter that, given a log of request timestamps, determines which requests are allowed under a fixed-window capacity.
Auto-gradeddata structuresrate limitersliding windowTests whether a candidate can maintain per-user rolling time windows over a chronologically ordered stream and emit aggregated records incrementally without buffering the whole input.
Auto-gradedhash-mapsimulationstreamingaggregationTests ability to simulate a Least-Frequently-Used cache by processing a sequence of get/put operations and returning the complete history of return values.
Auto-gradeddata structurescachesimulationhash mapTests the ability to implement a depth-first iterator over arbitrarily nested lists and dicts that yields leaf values in traversal order.
Auto-gradeddata structuresiterationrecursionTests ability to implement a sliding-window rate limiter that counts requests within a fixed-width time window using a list of timestamps.
Auto-gradedrate limitersliding windowdata structuresTests ability to simulate a fixed-capacity LRU cache where entries expire after a per-entry TTL, processing a sequence of GET/PUT/DELETE operations.
Auto-gradeddata structurescachesimulationTests the ability to replay a sequential log of set/delete operations on a key-value store and answer point-in-time value queries efficiently.
Auto-gradeddata structuressimulationversioned storehash mapTests ability to simulate a sequence of GET/PUT operations on a capacity-bounded LRU cache and return accumulated hit/miss statistics.
Auto-gradeddata structuressimulationcache