KatInterview

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

Interview Practice Problems

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

6045
Problems
2239
Auto-graded
15
Topics
275
Added today

Showing 1291–1320 of 6045 results

  • Statistics & ExperimentsMediumModel answer
    Diagnosing Profit Drop and Framing Executive Recommendations

    Break down a sudden profit decline using structured financial decomposition, pinpoint root operational causes, and deliver a data-driven recommendation summary.

    Statistics & Experimentsmetric decompositionroot cause analysisprofitabilitybusiness case
  • System DesignMediumModel answer
    Per-User Throttling for a Multiplayer Game API at Scale

    Design a distributed service that caps each user's request volume per rolling minute across many app servers, rejecting excess calls with HTTP 429 while staying fast and available.

    System Designrate-limitingdistributed-systemsredissliding-window
  • Trees & GraphsMediumAuto-graded
    Longest Chain of Accounts Reachable Through Follows

    Find the longest simple path from a start node in a directed graph with possible cycles, using backtracking DFS with a per-path visited set.

    Trees & Graphsgraphdfsrecursionbacktracking
  • Arrays & HashingEasyAuto-graded
    Monthly Hit Tracks: Overall and Per-Region Leaderboards

    Filter streaming events by duration and date window, count plays per track, and produce a global top 5 and per-country top 3 with deterministic tie-breaking.

    Arrays & Hashinghash-mapcountingsortinggrouping
  • StringsMediumAuto-graded
    Compressed Word Check Plus Bracket Matching

    Tests two linear scans in one function: validating a numeric-skip word abbreviation with two pointers, and checking nested bracket balance with a stack.

    Stringstwo-pointersstackstring-parsingvalidation
  • System DesignHardModel answer
    Warehouse Schema for a Consumer App's Engagement Events

    Model a high-volume user event stream in a relational warehouse so engagement metrics are cheap to compute, handling duplicates, late data, backfills and incremental rollups.

    System Designdata-modelingpartitioningevent-analyticslate-arriving-data
  • System DesignMediumModel answer
    Building an Async Prompt-to-Clip Rendering Platform on a GPU Fleet

    Design a backend that accepts text prompts, renders short AI-generated videos on a pool of expensive GPUs, and survives bursts, worker crashes, and uneven hardware.

    System Designasync-jobsgpu-schedulingjob-queueautoscaling
  • Arrays & HashingEasyAuto-graded
    Keep Only First Appearances in an Integer List

    Tests using a hash set alongside a list to filter repeated integers in one pass while preserving first-appearance order, in linear time.

    Arrays & Hashinghash-setarraysdeduplicationorder-preservation
  • BehavioralMediumModel answer
    Career Story, Project Deep Dive, and Three Behavioral Examples

    Prepare a structured answer covering a concise career overview, one detailed project with decisions and results, and short stories on ownership, teamwork, and working through unclear goals.

    Behavioralbehavioralresume-walkthroughstar-methodownership
  • BehavioralEasyModel answer
    Walking Through a Hard Project and Your AI Tooling Habits

    A two-part behavioral prompt: narrate a technically difficult project you led, then explain how you use generative AI tools responsibly in your engineering work.

    Behavioralbehavioralstar-methodproblem-solvinggenerative-ai
  • System DesignMediumModel answer
    Design a Scalable Distributed Mass Email Delivery Engine

    Architect an enterprise marketing dispatch platform supporting timezone-aware scheduling, template rendering, deduplication, fault-tolerant ESP dispatch, and tracking.

    System Designsystem-designdistributed-systemsevent-drivenmessaging
  • Statistics & ExperimentsMediumModel answer
    Comparing Low-Frequency Event Rates Under Unequal Sample Exposures

    Evaluate how to compare sparse event rates across different exposure lengths, highlighting why fixed-rate assumptions fail and detailing exact two-sample inference techniques.

    Statistics & Experimentspoisson-processhypothesis-testingconfidence-intervalsrare-events
  • Data Structure DesignMediumAuto-graded
    Roster Coverage and Rating Leaderboard Simulator

    Simulate a command log against a stateful tracker that merges per-agent time intervals and ranks agents by average rating with alphabetical tie-breaking.

    Data Structure Designdesignintervalshash-mapsorting
  • Arrays & HashingMediumAuto-graded
    Users With a Qualifying Login Session in an Unordered Event Log

    Pair sign-in and sign-out events per user from an unsorted log using chronological order and FIFO matching, and report users with a session within a time limit.

    Arrays & Hashinghash-mapsortingqueuesimulation
  • System DesignMediumModel answer
    Launch-Time Data Gatherer with Partial Failure Tolerance

    Design an async service that merges four backend calls into one app-startup response, aborting on a critical failure and degrading gracefully on optional ones, within a fixed latency budget.

    System Designasyncresiliencetimeoutsapi-aggregation
  • System DesignMediumModel answer
    Architecting a Distributed Asynchronous Job Execution System

    Design a scalable, fault-tolerant job scheduler that manages delayed execution, recurring tasks, worker leasing, and failure recovery with at-least-once delivery.

    System Designsystem-designdistributed-systemsqueuestask-scheduler
  • Statistics & ExperimentsHardModel answer
    Diagnosing a Metric Drop After a Feature Launch

    Investigate a sudden fall in a core engagement metric after a feature release: find the cause, size the impact, choose metrics, and design an experiment or quasi-experiment.

    Statistics & Experimentsproduct-analyticsab-testingcausal-inferencemetrics
  • Trees & GraphsMediumAuto-graded
    Five-Task Toolkit: Graphs, Swaps, Digits, Cache, Trees

    Solve five small tasks in one call: count graph components, minimum swaps to sort, largest monotonic number, simulate an LRU cache, and compare two N-ary trees.

    Trees & Graphsgraph-traversalcycle-decompositiongreedy-digitslru-cache
  • Statistics & ExperimentsHardModel answer
    Measuring Lift from a Hand-Enrolled Sponsored Search Pilot

    Evaluate a small hand-enrolled pilot of a new search ad format: define the estimand, reduce variance, test robustly on skewed revenue, check cannibalization, and explain why gains won't scale linearly.

    Statistics & Experimentscausal-inferencevariance-reductionpermutation-testbootstrap
  • Arrays & HashingMediumAuto-graded
    Seeded Two-Round K-Means with Spread-Out Starting Centers

    Simulate k-means++ seeding with a fixed RNG protocol, then run two assign/update rounds and report clusters, centroids and final squared error.

    Arrays & Hashingsimulationclusteringrandomized-samplingfloating-point
  • Stacks & QueuesMediumAuto-graded
    Resolve Field Paths in a Nested Message Schema

    Parse brace-delimited nested message definitions line by line, then check which dotted query paths name an actual field, tracking scope with a stack.

    Stacks & Queuesparsingstackhash-setstrings
  • Trees & GraphsMediumAuto-graded
    Tally Separate Clusters of Ones in a Binary Matrix

    Count 4-directionally connected clusters of 1s in a binary matrix using graph traversal, with care for visited tracking, empty inputs, and deep clusters.

    Trees & Graphsdfsgridconnected-componentsmatrix
  • Data Structure DesignMediumAuto-graded
    Batch-Driven Slash-Path Registry with Leaf-Only Deletion

    Simulate a tree-shaped registry addressed by slash-separated paths, processing a batch of create, set, get and remove commands and returning one result per command.

    Data Structure Designtriehash-mapdesignstring-parsing
  • Data Structure DesignHardModel answer
    Design an In-Memory Recipe Storage Engine

    Design and implement an in-memory storage manager supporting CRUD operations, custom identifier parsing, case-insensitive uniqueness, and controlled renames.

    Data Structure Designdesign-dsarraysstrings
  • Statistics & ExperimentsHardModel answer
    Diagnosing a Drop in Unsafe-Site Interstitial Counts

    Work out why the number of unsafe-site interstitials shown to users fell, and tell a real safety gain apart from a detection, delivery, or logging failure.

    Statistics & Experimentsroot-cause-analysismetricsfunnel-decompositionanomaly-investigation
  • Trees & GraphsHardAuto-graded
    Shortest Looping Command Script for a Fuel-Limited Rover

    Brute-force enumerate looping command scripts of length 1 to 10 and simulate each on a grid with fuel, walls and refuel pads, using state-repeat detection to stop loops.

    Trees & Graphssimulationbrute-forcegridcycle-detection
  • Dynamic ProgrammingHardAuto-graded
    Daily Vendor Booking with No Immediate Repeats

    Choose one vendor per day to minimize total price with no vendor on consecutive days, returning the plan with a fixed tie-break; tests DP, backtracking, and best/second-best.

    Dynamic Programmingdynamic-programmingpath-reconstructionoptimizationarrays
  • Arrays & HashingMediumAuto-graded
    Longest Run of Non-Repeating Numbers in an Array

    Find the length of the longest contiguous stretch of an integer array in which no value appears twice, using a sliding window with a last-seen index map.

    Arrays & Hashingsliding-windowhash-maptwo-pointerssubarray
  • Statistics & ExperimentsHardModel answer
    Presenting Unlicensed Software Telemetry and Revenue Impact to Product

    Interpret time-series analytics on unlicensed asset usage, separate logging artifacts from true merchant behavior, address censoring biases, and advise product leaders on next steps.

    Statistics & ExperimentsTime-SeriesData QualityMetricsExperimentation
  • Math & Bit ManipulationMediumAuto-graded
    Working Days Between Two Dates with a Closure List

    Count Monday-to-Friday days in an inclusive date range, skipping listed closure dates, using week arithmetic instead of day-by-day iteration.

    Math & Bit Manipulationdatescalendararithmeticsets