KatInterview

practice a little every day — you've got this ♡

Coding Interview Problems

Practice 5967 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.

5967
Problems
2210
Auto-graded
15
Topics
272
Added today

Showing 631–650 of 650 results

  • Data Structure DesignMediumModel answer
    Build a Concurrent Batch Transform Engine with Error Isolation

    Create a worker-pool-based processor that applies transformation pipelines to 2D integer grids, ensuring failures in individual items don't affect others.

    Data Structure Designconcurrencyerror-handlingthreading
  • Heaps, Sorting & SearchMediumModel answer
    Binary Search Optimization and Interval Consolidation

    Find the minimal rate to process items within a time limit, then consolidate overlapping ranges into non-overlapping spans.

    Heaps, Sorting & Searchbinary-searchintervalsgreedyoptimization
  • Arrays & HashingMediumModel answer
    Chess Queen Line-of-Sight Attack Counting

    Calculate how many chess queens can attack each query position, first without obstacles, then accounting for blocking pieces on the board.

    Arrays & Hashinggeometryhash-mapbinary-searchsorting
  • Data Structure DesignMediumModel answer
    Account Ledger with Reservation Expiry and Merging

    Design a banking ledger that supports deposits, time-limited transfer reservations, acceptance of reserved transfers, and merging accounts with their pending operations.

    Data Structure Designstate-machinereservation-systemunion-findexpiry-handling
  • Trees & GraphsMediumModel answer
    Build a Same-Domain Web Page Crawler

    Write a crawler that visits all pages reachable from a start URL, staying within the same domain, avoiding cycles and duplicate fetches.

    Trees & Graphsgraph-traversalbfsdfsurl-parsing
  • Data Structure DesignMediumModel answer
    Wind Field Tracker for Hot Air Balloons

    Build a system that tracks balloon altitudes, computes spatially-varying wind exposure from multiple sources, and identifies stable balloons above a threshold.

    Data Structure Designevent-simulationspatial-aggregationtime-based-statedata-structures
  • Data Structure DesignMediumModel answer
    Build a Dynamic IP Address Filter with CIDR and Range Support

    Implement a low-latency IP rule matcher supporting CIDR blocks and numeric ranges with conflict resolution based on specificity and recency.

    Data Structure Designnetworkingdata-structuresheapsalgorithms
  • Trees & GraphsMediumModel answer
    Build a File Owner Aggregator for Code Review Assignment

    Parse Git diffs and a CSV ownership map to identify which contributor owns the most modified files in a branch comparison.

    Trees & Graphsgitfile-iocsvaggregation
  • Data Structure DesignMediumModel answer
    Time-Ordered Credit Bucket Manager

    Build a ledger tracking credit buckets with expiration windows, supporting out-of-order events, priority-based consumption, and point-in-time balance queries.

    Data Structure Designheapsevent-orderingtime-seriesdata-structures
  • Data Structure DesignMediumModel answer
    Managing a Live Event Stream with Pause and Statistics

    Build a React hook that processes a high-speed event stream with deduplication, sorting, memory limits, pause/resume, and rolling time-window metrics.

    Data Structure Designreacthooksstate-managementstreaming
  • Data Structure DesignMediumModel answer
    RPN Calculator and Lock-Free Queue Implementation

    Build a macro-enabled expression evaluator and implement a thread-safe ring buffer with proper memory ordering.

    Data Structure Designconcurrencymemory-managementcompilersdata-structures
  • Data Structure DesignMediumModel answer
    Build a Rule-Based Access Control Evaluator with Expression Parsing

    Design and implement an access decision engine that evaluates ordered security rules with conditions expressed in a custom expression language.

    Data Structure Designparsinginterpretersrecursioncompiler-design
  • Arrays & HashingMediumModel answer
    Build an Annotation Assignment Schedule

    Construct a valid work schedule assigning human reviewers to tasks under minimum-coverage and no-repeat constraints, then extend it to stay balanced in every prefix.

    Arrays & Hashingconstructiveschedulingcombinatorics
  • Data Structure DesignMediumModel answer
    Terminal Naval Combat: Fleet Setup and Attack System

    Implement a console-based naval battle game where two players configure their fleets through text input, then exchange fire until one side is eliminated.

    Data Structure Designobject-oriented-designinput-validationstate-management
  • Trees & GraphsMediumModel answer
    Finding Profitable Exchange Cycles with Transaction Fees

    Given exchange rates between currencies and a per-cycle transaction cost, determine if any sequence of trades can yield a profit.

    Trees & Graphsgraph-algorithmsbellman-fordnegative-cyclelogarithms
  • Data Structure DesignMediumModel answer
    Word Matcher and File System Implementation

    Build a function to find whole-word keyword matches in text, then design an in-memory file system with directory and file operations.

    Data Structure Designstring-processingdata-structurestreedesign
  • Heaps, Sorting & SearchMediumModel answer
    Merge Sorted Runs by Absolute Value and Extract k-th Element

    Reorder a sorted array by absolute value in linear time, then find the k-th element in that order using logarithmic-time search without materializing the full result.

    Heaps, Sorting & Searchbinary-searchtwo-pointersorder-statisticsarray-manipulation
  • Data Structure DesignHardModel answer
    Arrays vs Hash Maps: Trade-offs for Sparse Active-Record Stores

    Compare arrays and hash maps across time complexity, memory, and cache behavior, then choose the right structure for a sparse integer-keyed active set.

    Data Structure Designhash-maparraymemorycache
  • Data Structure DesignMediumModel answer
    Concurrent Cache with Deduplication and Safe Expiry

    Implement thread-safe cache retrieval that deduplicates simultaneous requests for identical keys while maintaining parallelism across distinct keys.

    Data Structure Designconcurrencycachingsynchronization
  • Data Structure DesignMediumModel answer
    Frontend State Management and Form Handling

    Build a web interface that manages list state, handles form submission with proper error recovery, integrates with APIs, and maintains data consistency.

    Data Structure Designfrontendstate-managementform-validationapi-integration