KatInterview

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

Interview Practice Problems

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

6013
Problems
2228
Auto-graded
15
Topics
276
Added today

Showing 3031–3060 of 3785 results

  • Machine LearningHardModel answer
    Month-by-Month Employee Departure Forecasting System

    Design an end-to-end ML system that estimates, for each active user, the probability of leaving their current employer in each of the next K months.

    Machine Learningsurvival-analysishazard-modelingfeature-engineeringleakage-prevention
  • System DesignMediumModel answer
    Multi-Sensor Data Replay System for Autonomous Vehicle Scenarios

    Design a scalable system to store, index, and stream synchronized sensor recordings from autonomous vehicles, supporting variable-speed playback and metadata filtering.

    System Designstreamingdistributed-systemsdata-modelingcaching
  • BehavioralEasyModel answer
    Understanding Multi-Level Assessment Scoring and Result Access

    Explains how progressive online coding assessments compute scores across levels with partial credit, and how candidates access results afterward.

    Behavioralassessment-mechanicsprocess-knowledgeprofessional-communication
  • System DesignMediumModel answer
    Build a Wordle Clone Component in React

    Implement a 5-letter, 5-guess word puzzle in React with correct duplicate-letter tile scoring, virtual keyboard state, and clean game-over transitions.

    System Designreacttypescriptgame-logicstate-management
  • Machine LearningMediumModel answer
    Bias-Variance Tradeoff and Attention Mechanisms

    Explain model generalization, learning curve diagnosis, regularization methods, and the computational mechanics of attention in sequence models.

    Machine Learningoverfittingregularizationtransformersattention
  • Data Structure DesignMediumModel answer
    Design a Shopping Cart with OOP: Catalog, Lines, and Totals

    Model a shopping cart in object-oriented code: add, update, and remove items, compute an exact total, and handle edge cases consistently.

    Data Structure Designobject-oriented designpythonmoney arithmetic
  • Statistics & ExperimentsMediumModel answer
    Design an experiment for a priority dispatch feature

    Design metrics and a randomization strategy to test a paid priority-matching product in a two-sided rideshare marketplace.

    Statistics & Experimentsexperimentationmarketplacescausal-inferencemetrics
  • System DesignMediumModel answer
    Keyset Pagination Design for High-Volume Event Logs

    Design a cursor-paginated API for a large append-only event ledger that avoids offset pitfalls and stays stable under concurrent inserts.

    System Designpaginationapi-designdatabase-indexingscalability
  • Machine LearningHardModel answer
    Build a Production RAG Pipeline with Strict Latency Requirements

    Design an end-to-end retrieval-augmented generation architecture for customer support that meets p99 latency targets under 1.5s while handling multi-tenancy and scale.

    Machine Learningretrieval-augmented-generationsystem-designlatency-optimizationvector-search
  • Machine LearningMediumModel answer
    Hardware-Aware Routing for Multi-Phase LLM Inference

    Build a system that dynamically assigns prefill and decode stages of large language model inference to heterogeneous hardware pools based on profiled capabilities.

    Machine Learningml-systemsinferenceschedulingresource-management
  • Statistics & ExperimentsHardModel answer
    Design and Analyze a Multi-Channel Vaccination Campaign Experiment

    Plan a randomized experiment to measure the impact of SMS and email reminders on pharmacy vaccination rates, including power calculations and causal inference.

    Statistics & Experimentsexperimentationcausal-inferencepower-analysisfactorial-design
  • Statistics & ExperimentsHardModel answer
    Correct a Ratio Metric Confidence Interval Built on Wrong Assumptions

    Diagnose why a naively constructed CI for a ratio metric (revenue per session) is invalid and derive the correct interval using the delta method.

    Statistics & Experimentsstatisticsconfidence intervalsdelta methodratio metrics
  • Machine LearningMediumModel answer
    Building a Time-Safe Retention Prediction Model

    Design a feature set and validation strategy to predict whether users will remain active, avoiding temporal leakage and quantifying predictive lift.

    Machine Learningretentiontemporal-leakagefeature-engineering
  • System DesignHardModel answer
    API Design for a Frequency Analysis Service

    Design comprehensive input validation, error handling, and operational safeguards for a RESTful endpoint that returns the most common elements from a dataset.

    System Designapi-designerror-handlingvalidationrate-limiting
  • Statistics & ExperimentsHardModel answer
    End-to-End A/B Test Design for a Checkout Flow Change

    Design, run, and analyze a controlled experiment on a checkout page redesign, covering power calculations, guardrails, identity, sequential testing, and subgroup decisions.

    Statistics & Experimentsa/b testingexperimental designstatisticscausal inference
  • System DesignMediumModel answer
    Design a Reliable Poller for a Lagging Upstream Database

    Determine whether variable record lag allows a fixed polling interval to guarantee one new record per poll, then define a production-ready ingestion strategy.

    System Designpollingdata-pipelinesdistributed-systemscursors
  • System DesignMediumModel answer
    Concurrency models: processes vs threads

    Contrast processes and threads as concurrency primitives, covering isolation, memory models, IPC vs shared memory, and when to choose each.

    System Designconcurrencyoperating-systemsfundamentals
  • Statistics & ExperimentsMediumModel answer
    Design a Reputation Badge A/B Test for a P2P Marketplace

    Design a rigorous experiment to measure whether a seller reputation badge increases transaction volume on a peer-to-peer platform, handling network interference and fairness concerns.

    Statistics & Experimentsexperiment designA/B testingnetwork effectsSUTVA
  • Machine LearningMediumModel answer
    Design a Low-Latency Retrieval Layer for a Large-Scale Product Catalog

    Design the retrieval stage of a marketplace search system that surfaces relevant listings from tens of millions of items within a tight latency budget.

    Machine LearningretrievalembeddingssearchANN
  • Data Structure DesignHardModel answer
    Memoization Cache: Key Design and Write-Ahead Log Recovery

    Build a Python LRU memoization cache with correct argument-key normalization, then add crash recovery via an append-only log with torn-write handling.

    Data Structure Designlru-cachememoizationcrash-recoverywrite-ahead-log
  • Data Structure DesignMediumModel answer
    Build a List with a Tracking Cursor

    Design a mutable list with a cursor that stays attached to its element as items are inserted, removed, or relocated within the collection.

    Data Structure Designdata-structuresinvariantsapi-designcomplexity-analysis
  • Statistics & ExperimentsMediumModel answer
    Diagnose a Sudden Ride Volume Drop and Evaluate a Win-Back Promo

    Systematically rule out data pipeline failures, identify whether a discount campaign is crowding out organic demand, and design an experiment that accounts for marketplace interference.

    Statistics & Experimentsmetric investigationexperimentationcausal inferencemarketplace dynamics
  • Machine LearningHardModel answer
    Building a Real-Time Ad Recommendation Engine

    Design a machine learning system that delivers personalized advertisements to users at scale, covering infrastructure, modeling, and evaluation.

    Machine Learningrecommendation-systemsrankingadsreal-time-ml
  • System DesignMediumModel answer
    Distributed Job Scheduler with Pause and Resume

    Build a fault-tolerant scheduler that triggers recurring tasks on cron-like intervals with pause/resume control and multi-instance coordination.

    System Designdistributed-systemsschedulingfault-toleranceconcurrency
  • Statistics & ExperimentsMediumModel answer
    Core Statistics Refresher: Distributions, Tests, and Inference

    Answer five foundational statistics questions covering Poisson moments, confidence intervals, t vs z tests, the CLT, and p-value interpretation.

    Statistics & Experimentsprobabilityhypothesis-testingconfidence-intervalscentral-limit-theorem
  • Statistics & ExperimentsMediumModel answer
    Probabilistic Betting Under Time Pressure

    Calculate expected values and bet sizes across coin flips, dice sums, and card products in a timed trading simulation with limited bankroll.

    Statistics & Experimentsprobabilityexpected-valuerisk-managementdecision-making
  • Statistics & ExperimentsMediumModel answer
    Quantitative Reasoning: Probability, Logic, and Rate Problems

    Solve a collection of probability, counting, expectation, algebra, and logical reasoning problems with clear justification for each answer.

    Statistics & Experimentsprobabilitycombinatoricsexpectationbayes-theorem
  • Machine LearningMediumModel answer
    Finding Duplicate Transactions in a Payment Dataset

    Design a system to detect, classify, and quantify duplicate records in a payment transaction dataset, handling both exact matches and fuzzy near-duplicates.

    Machine Learningrecord-linkagedata-qualityentity-resolutiondeduplication
  • BehavioralHardModel answer
    Own It: Projects, Setbacks, and What You Learned

    Prepare structured, story-driven answers to seven core behavioral prompts covering ownership, conflict, failure, feedback, and self-improvement.

    Behavioralbehavioralleadershipcommunicationgrowth-mindset
  • BehavioralHardModel answer
    Navigating Competing Priorities Across Multiple Teams

    Describe a situation where you balanced conflicting requirements from different groups, made explicit trade-offs, and delivered a solution that addressed core needs.

    Behavioralstakeholder-managementcommunicationprioritizationtrade-offs