KatInterview

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

Interview Practice Problems

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

6135
Problems
2276
Auto-graded
15
Topics
272
Added today

Showing 3001–3030 of 6135 results

  • System DesignHardModel answer
    Offline Audio Moderation Pipeline: End-to-End Architecture

    Design a batch pipeline that screens stored audio files for policy violations, labels each as safe, unsafe or uncertain, and routes uncertain ones to human reviewers.

    System Designml-system-designaudiopipeline-orchestrationhuman-in-the-loop
  • Arrays & HashingMediumAuto-graded
    Cross-Array Pair Sum Check on Two Ordered Lists

    Decide whether one value from each of two sorted lists adds up to a target, using a linear-time opposite-direction two-pointer scan with constant extra space.

    Arrays & Hashingtwo-pointerssorted-arraystwo-sumoverflow-safety
  • System DesignHardModel answer
    Designing a Continuously Refreshed Merchant Attribute Store

    Design a platform that links merchants to external sources, refreshes their attributes on schedule, resolves conflicts with provenance, and serves low-latency reads even when upstreams fail.

    System Designsystem-designdata-pipelinesentity-resolutionrate-limiting
  • Statistics & ExperimentsMediumModel answer
    Budget Reallocation Plan with Experiment Design and Risk Controls

    Design a constrained next-quarter program budget mix to maximize net profit, estimate the upside, and lay out an experiment and analysis plan to validate it.

    Statistics & Experimentsexperiment-designbudget-allocationcausal-inferencepower-analysis
  • BehavioralMediumModel answer
    Prepare for a values-focused screen with a 90-minute budget

    Plan a 90-minute prep, deliver a five-minute opener with a principled challenge, build a mutual-fit rubric, and write an email asking for a shorter interview loop.

    Behavioralbehavioralcommunicationculture-fitprioritization
  • Machine LearningMediumModel answer
    Learning a Collaboration Closeness Score for Coworker Pairs

    Design an ML system that scores how closely any two employees in an organization collaborate, covering signals, proxy labels, training, evaluation, privacy and serving.

    Machine Learningml-system-designgraph-learningembeddingslink-prediction
  • Data Structure DesignMediumModel answer
    Fixing a Lost-Update Race in a Deposit Method You Cannot Edit

    Diagnose the race in an account deposit that reads, pauses, then writes, and add locking through a subclass, wrapper or embedding in Python and Go without touching the original type.

    Data Structure Designconcurrencyrace-conditionmutexpython
  • Arrays & HashingEasyAuto-graded
    Horvitz-Thompson Event Rate from Weighted Inspection Records

    Estimate a population-wide event rate from samples drawn with known unequal inclusion probabilities, using inverse-probability weighting divided by the population size.

    Arrays & Hashinginverse-probability-weightingsamplingestimationhorvitz-thompson
  • System DesignMediumModel answer
    Design a Versioned Product Catalog with Atomic Launches

    Design a multi-tenant catalog backend with draft/publish workflows, grouped launches, search, and safe rollback, serving 100K peak read QPS at P99 under 25 ms.

    System Designsystem-designcqrsversioningcaching
  • Arrays & HashingMediumAuto-graded
    Rover on a Walled Floor Plan with Blocked Cells

    Simulate a rover on a bounded rectangular grid that turns, steps forward, and steps backward, skipping any step that leaves the grid or enters a blocked cell.

    Arrays & Hashingsimulationhash-setgridmodular-arithmetic
  • System DesignMediumModel answer
    Fixing a Type-Ahead Search Box That Shows Stale Results

    Diagnose why a React search component sometimes displays results for an older query, then fix it with effect cleanup and request cancellation, and prove the fix with a deterministic test.

    System Designreactrace-conditionabortcontrolleruseeffect
  • System DesignMediumModel answer
    Time-Indexed Service for Multi-Topic Vehicle Recording Files

    Design and build a service that ingests recorded vehicle sessions from MCAP files, stores them with a time index, and exposes APIs to list sessions and fetch messages by timestamp.

    System Designmcapprotobufsqlitetime-index
  • Greedy & IntervalsMediumAuto-graded
    Stock Piles Priced by Remaining Count: Maximum Earnings

    Greedy selling from the largest pile, solved in bulk with sorting and arithmetic-series sums because the number of sales is too large to simulate one by one.

    Greedy & Intervalsgreedysortingarithmetic-seriesmath
  • Arrays & HashingMediumAuto-graded
    Balanced Alternating Sums After One Removal

    Count positions whose removal makes the sum at even positions equal the sum at odd positions, testing prefix/suffix sums and the parity shift after a deletion.

    Arrays & Hashingprefix-sumsparityarraycounting
  • BehavioralMediumModel answer
    Motivation and Values Fit for a Product-Focused Data Role

    Answer a "why this company" behavioral question for a data role by linking personal motivation and company values to concrete, evidence-backed stories.

    Behavioralbehavioralmotivationvalues-fitstar-method
  • Data Structure DesignMediumAuto-graded
    Dual-Quota Request Throttle with Sliding Time Window

    Simulate a throttle that enforces a per-user and a per-game quota over a sliding time window, recording a request only when both quotas have room.

    Data Structure Designsliding-windowdequehash-mapsimulation
  • Machine LearningHardModel answer
    Designing a Live Card-Payment Fraud Scoring Pipeline

    Design an ML system that scores card payments inside the authorization path, handling extreme class imbalance, delayed labels, concept drift, and uneven costs of errors.

    Machine Learningfraud-detectionimbalanced-datafeature-storeconcept-drift
  • System DesignHardModel answer
    Design a GPU Test Pipeline in Jenkins Across Driver Matrices

    Design a Jenkins-based CI system that builds a graphics stack and runs GPU tests across hardware, driver and OS combinations, with flake handling, gating and safe driver rollouts.

    System Designjenkinsci-cdgputest-sharding
  • Trees & GraphsMediumAuto-graded
    Batch Ratio Lookup Over Linked Quantities

    Answer many ratio queries between named quantities from pairwise ratio facts, using a weighted union-find or component precomputation instead of a search per query.

    Trees & Graphsunion-findgraphweighted-union-findbatch-queries
  • Arrays & HashingEasyAuto-graded
    Category Revenue and Fulfillment Report from Three Tables

    Join order, product and category records, group by category name, and compute total revenue, mean revenue per row and the share of completed rows, using hash maps.

    Arrays & Hashinghash-mapaggregationjoingrouping
  • StringsMediumAuto-graded
    Build an expression from 1 to 9 that hits a target

    Tests depth-first backtracking over operator choices, on-the-fly evaluation without re-parsing, and deterministic tie-breaking when several valid answers exist.

    Stringsbacktrackingdfsrecursionstring-construction
  • Heaps, Sorting & SearchEasyAuto-graded
    Clean, Impute and Rank Student Score Records

    Filter records with too many missing values, fill gaps with per-subject medians, then pick the top five using a multi-key sort with tie-breaks.

    Heaps, Sorting & Searchsortingmediandata-cleaningsimulation
  • System DesignMediumModel answer
    Building a Crash-Safe Shared Audit Log Writer in Java

    Design a thread-safe file logger whose records never interleave, and explain how fsync, batching and OS caching trade throughput against durability.

    System Designconcurrencyfile-iodurabilityfsync
  • Data Structure DesignMediumAuto-graded
    Bidirectional Walk Over a CIDR Block's Addresses

    Simulate a two-way cursor over the IPv4 addresses of a CIDR block using integer arithmetic, with exact boundary and no-move-on-failure rules.

    Data Structure Designiteratorbit-manipulationcidrsimulation
  • System DesignMediumModel answer
    Designing an Analytics Data Pipeline Across Cloud, Hybrid and Multi-Cloud

    Design a pipeline from operational systems to analytics, then adapt it for a hybrid on-prem and cloud setup and map it onto AWS and Azure, defending each tool choice.

    System Designdata-pipelinehybrid-cloudawsazure
  • Data Structure DesignHardModel answer
    Retroactive Pay Ledger with Rate Changes and Shift Logging

    Design a class that records rate changes and shifts in any order, and reports total earnings under the current rate schedule using prefix sums and binary search.

    Data Structure Designdesignprefix-sumbinary-searchintervals
  • System DesignHardModel answer
    Critiquing a Flag Service Proposal for an Inference API

    Review a proposed runtime toggle service that polls one database, then rank its weaknesses and explain how to deliver the feedback to the author.

    System Designdesign-reviewfeature-flagsreliabilityfailure-modes
  • System DesignHardModel answer
    Cycle-Safe Editing and Loop Limits for a Workflow Engine

    Design a service that blocks cyclic dependency edits, pins each run to a stable graph version, and caps retries and dynamic expansion so execution always terminates.

    System Designsystem-designdagcycle-detectionworkflow-engine
  • Data Structure DesignMediumModel answer
    Org Chart Inference with Manager and Peer Links

    Design a structure that records manager and same-manager links between employee IDs and answers whether one employee sits above another, including facts inferred from earlier updates.

    Data Structure Designunion-finddesigngraphstransitive-closure
  • System DesignMediumModel answer
    Trending Pages Leaderboard: Top K URLs in a Rolling Window

    Design a pipeline that ranks the K most-viewed URLs over a rolling time window, covering partitioned counting, correct merging, viral-URL skew, late events, and exact versus approximate counts.

    System Designsystem-designstreamingtop-ksliding-window