KatInterview

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

Interview Practice Problems

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

5995
Problems
2220
Auto-graded
15
Topics
270
Added today

Showing 481–510 of 3775 results

  • System DesignMediumModel answer
    Design a Pay Calculation API with Retries and Idempotency

    Design a resilient HTTP API for event ingestion and worker earnings computation, featuring idempotency keys, deterministic windowing, batch partial success, and retries.

    System Designapi-designidempotencyfault-tolerancedistributed-systems
  • Data Structure DesignHardModel answer
    Payment Command Parser and Lifecycle State Machine Design

    Design a parser for fixed-arity payment commands and an object-oriented lifecycle state machine, and identify which business rules need clarification before implementation.

    Data Structure Designstate-machineparsingobject-oriented-designvalidation
  • Data Structure DesignHardModel answer
    Variable-Argument Functions Across Languages, with a Safe Logger

    Compare how two languages implement functions with a variable number of arguments, then design a type-checked key-value logger that avoids injection and needless allocation.

    Data Structure Designvariadic-functionstype-safetycalling-conventionslogging
  • Statistics & ExperimentsMediumModel answer
    Poisson vs Normal: Contrasts, Moments, and Approximation

    Contrast the Poisson and Normal distributions, derive each one's mean and variance, and explain when and why a Poisson can be replaced by a Normal.

    Statistics & Experimentspoissonnormal-distributioncltmoments
  • Machine LearningMediumModel answer
    Leak-Free Pipeline for a Rare-Event Classifier

    Build a scikit-learn and imbalanced-learn workflow for a rare-positive dataset that avoids leakage, tunes the decision threshold, and reports precision, recall and F1 on untouched data.

    Machine Learningimbalanced-learnsmotescikit-learnprecision-recall
  • Machine LearningMediumModel answer
    Design a Production ML Pipeline and Prevent Overfitting on Tabular Data

    Architect an end-to-end machine learning pipeline for real estate price prediction, covering EDA, spatial validation, feature scaling, GBDT baselines, and neural network regularization.

    Machine Learningtabular dataregressioncross-validationregularization
  • Statistics & ExperimentsHardModel answer
    Support Agent Credit, KPI Drop Triage, and Wrong-Order Defects

    Design a fair agent cost and credit model, triage a sudden support KPI decline, and find and reduce the driver of wrong-order complaints in a delivery marketplace.

    Statistics & Experimentsanalyticsattributionroot-cause-analysiskpi-diagnosis
  • BehavioralMediumModel answer
    Mastering Feedback, ML Engineering, Rapid Learning, and Career Growth

    A guide to framing responses on feedback receptiveness, practical AI/ML implementation, rapid learning strategies, technical obstacles, and career transition drivers.

    Behavioralbehavioralleadershipmachine-learningcareer-growth
  • Machine LearningHardModel answer
    Diagnosing a Misbehaving Encoder-Decoder Training Loop

    Find and fix the hidden bugs in a PyTorch encoder-decoder trainer where validation stays at chance, AMP crashes, and runs are not reproducible, then plan the debugging.

    Machine Learningtransformerspytorchdebuggingmixed-precision
  • Statistics & ExperimentsMediumModel answer
    Judging a Padded ETA Rollout: Conversion Down, Pickup Time Down

    A ride-hailing app now shows longer wait quotes. Conversion fell and pickup time dropped. Assess a manager's efficiency claim, propose alternative explanations, and design a sound experiment.

    Statistics & Experimentscausal-inferenceab-testingselection-biasswitchback
  • BehavioralHardModel answer
    Product Judgment Drill: Prioritization, Ephemeral Posts, VR Store

    A four-part product-sense exercise: how you choose and rank work, whether a short-video app should add ephemeral Stories, and how to design a VR app marketplace with metrics.

    Behavioralproduct-senseprioritizationmetricscase-study
  • Data Structure DesignMediumModel answer
    Multi-Device Login Burst Detector over a Late-Tolerant Stream

    Design a streaming detector that flags users with 4 or more distinct devices logging in successfully within 10 minutes, tolerating events up to 30 seconds late, with bounded memory.

    Data Structure Designsliding-windowstreamingwatermarkordered-map
  • BehavioralMediumModel answer
    Demonstrating Project Lifecycle: Prototype, Business Impact, and Handoff

    Walk through a major initiative from initial problem identification and quick prototype to cross-functional adoption, quantifiable impact, and long-term maintenance handoff.

    Behavioralproject-impactcross-functionalleadershipprototyping
  • Statistics & ExperimentsMediumModel answer
    Calculate Overlapping Arrival Probabilities for Continuous Windows

    Find the exact probability that two independent continuous arrivals within a 60-minute interval occur within 15 minutes of each other.

    Statistics & Experimentsprobabilitycontinuous-distributionsgeometric-probabilitystatistics
  • BehavioralMediumModel answer
    Pushing Back on a Technical Call and Then Backing the Decision

    Tell a structured story about disagreeing with a manager or stakeholder on a technical direction or priority, how you made your case, and how you supported the final decision.

    Behavioralbehavioralconflict-resolutionstakeholder-managementdisagree-and-commit
  • Statistics & ExperimentsMediumModel answer
    Pick a Consumer App: Metrics, Experiment, Launch Call

    Choose a consumer app, break down how it makes money and who it competes with, define key and guardrail metrics, then design and decide on an A/B test for one improvement.

    Statistics & Experimentsproduct-analyticsab-testingmetricspower-analysis
  • BehavioralMediumModel answer
    Behavioral Prep: Coaching a Struggling Peer and Unblocking a Critical Project

    Prepare two contrasting stories: supporting a struggling teammate without taking over, and driving a high-priority project past a major blocker while managing stakeholder expectations.

    Behavioralbehavioralleadershipstakeholder-communicationownership
  • Data Structure DesignMediumModel answer
    Build a Terminal Block-Stacking Game Engine

    Design a testable, terminal-friendly engine for a falling-block puzzle on a 10x20 grid, covering movement, rotation, gravity, locking, line clearing and game over.

    Data Structure Designgame-logicstate-machinesimulationobject-oriented-design
  • Statistics & ExperimentsHardModel answer
    Measuring a Feed Redesign Launched With No Holdout Group

    Estimate the impact of a feed change shipped without a control group, compare matching with propensity weighting, audit an A/B test, pick module metrics, and debug a CTR drop.

    Statistics & Experimentscausal-inferencepropensity-scoreab-testingmetrics
  • System DesignMediumModel answer
    Layering a Big-Data Analytics Stack: Lake, Engine, and Serving Tier

    Decide how to combine HDFS, Spark, Hive and SQL Server into a pipeline for 500 TB of logs, analyst SQL, fast executive dashboards and strict governance, and justify what to leave out.

    System Designdata-warehousehadoopsparkhive
  • Statistics & ExperimentsMediumModel answer
    Did a New Dispatch Algorithm Cut Rider Wait Times? A/B Analysis

    Analyze a city-level dispatch A/B test in pandas, run a Welch t-test on wait time, and discuss clustering, selection bias, effect size, and a stronger experiment design.

    Statistics & Experimentsab-testingwelch-t-testpandasclustered-data
  • System DesignMediumModel answer
    Spring Boot 3 and Java 21 Drill-Down on a Small REST Service

    Defend a small Spring Boot 3 / Java 21 REST service: explain startup, auto-configuration, proxies, modern Java features, and design and concurrency trade-offs.

    System Designspring-bootjava-21virtual-threadsdependency-injection
  • Machine LearningMediumModel answer
    Generalization Gaps and the Mechanics of Transformer Attention

    Diagnose and fix overfitting in linear and deep models, then explain self-attention (queries, keys, values, softmax weights) and why and how Transformers inject position information.

    Machine Learningoverfittingregularizationtransformersself-attention
  • Trees & GraphsMediumModel answer
    Robot Navigation on a Hidden Grid with DFS and Backtracking

    Guide a robot through a map it can only discover step by step, reaching the target with no repeated visits, real backtracking, and a clear result when the target is unreachable.

    Trees & Graphsdfsbacktrackinggraph-traversalgrid
  • System DesignHardModel answer
    Struct Layout and Binary Compatibility in C++

    Explain how alignment and padding determine object size and layout in C++, and why the C++ ABI breaks easily across toolchains, with practical strategies for keeping binary interfaces stable.

    System Designcppmemory-layoutalignmentabi
  • BehavioralEasyModel answer
    Fixing a Broken Test and Release Process: A Story to Tell

    Walk through a real case where you spotted a weak testing or release process, changed it, won over teammates, and showed measurable improvement.

    Behavioralbehavioralqaprocess-improvementstakeholder-management
  • Statistics & ExperimentsHardModel answer
    Launch Call When Cross-Account Notifications Cannibalize Usage

    An A/B test shows notification metrics rising but usage falling on other accounts of multi-account users. Frame the trade-off, estimate long-term value, propose mitigations, and plan monitoring.

    Statistics & Experimentsexperimentationproduct-sensecannibalizationlaunch-decision
  • BehavioralMediumModel answer
    Walking Through Your Highest-Impact Project of the Past Three Years

    Describe one recent project you drove, covering target, constraints, decisions, risk, measured before/after results, accepted trade-offs and what you reused later.

    Behavioralbehavioralimpactmetricstrade-offs
  • System DesignMediumModel answer
    Weighing an AI Assistant for Insurance Policyholder Support

    Argue the value of putting an automated assistant in front of policyholders, tying each benefit to a mechanism and a metric, then weigh it against risks around claims and payouts.

    System Designproduct-strategychatbotinsurancemetrics
  • Machine LearningHardModel answer
    Debiasing Click Logs for Ranking: Propensities, IPS, Offline Eval

    Design a pipeline that models, estimates and corrects position bias in click-trained feed rankers, then evaluates a new ranker offline using only logged impressions.

    Machine Learningposition-biaslearning-to-rankinverse-propensity-scoringcounterfactual-evaluation