KatInterview

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.

Problems737

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-management
  • Build a stateful stream processor that validates payment records, detects velocity and spending anomalies, and produces fixed-width audit logs.

    Auto-gradedsimulationparsingsliding-window
  • Build an in-memory banking system that processes timed fund transfers deterministically and consolidates accounts with automatic transaction rerouting.

    Auto-gradedunion-findsimulationsorting
  • Build 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-structurestreedesign
  • Compare 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-maparraymemorycache
  • Implement thread-safe cache retrieval that deduplicates simultaneous requests for identical keys while maintaining parallelism across distinct keys.

    Model answerconcurrencycachingsynchronization
  • Build 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-integration
  • Implement 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-setgridconnectivity
  • Tests tree traversal and subtree aggregation by computing cumulative scores bottom-up across a forest of sponsor-recruit relationships.

    Auto-gradedtrees-graphsdesign-dsstacks-queues
  • Tests 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 window
  • Tests 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-mapsimulationstreamingaggregation
  • Tests 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 map
  • Tests the ability to implement a depth-first iterator over arbitrarily nested lists and dicts that yields leaf values in traversal order.

    Auto-gradeddata structuresiterationrecursion
  • Tests 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 structures
  • Tests 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 structurescachesimulation
  • Tests 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 map
  • Tests ability to simulate a sequence of GET/PUT operations on a capacity-bounded LRU cache and return accumulated hit/miss statistics.

    Auto-gradeddata structuressimulationcache

More topics