KatInterview

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

Interview Practice Problems

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

6077
Problems
2253
Auto-graded
15
Topics
275
Added today

Showing 1831–1860 of 3824 results

  • BehavioralMediumModel answer
    Ramping Up Fast on an Unfamiliar Technical Area

    Describe a time you had to become effective in an unfamiliar area under deadline pressure, showing a structured, repeatable learning method and measurable impact on the outcome.

    Behavioralbehavioralstar-methodlearning-agilityprioritization
  • BehavioralMediumModel answer
    Deep Dive on Your Proudest Technical Project

    Present one significant project from your background, covering your role, key decisions, conflict, risks, measurable results, a setback, and what you would change in hindsight.

    Behavioralbehavioralproject-deep-diveownershiptrade-offs
  • System DesignHardModel answer
    Feature Flag Delivery and Live Experiment Metrics at Scale

    Design a system that ships versioned feature flags to 10M devices with fast global rollback, plus a streaming pipeline that computes per-version click-through rates in near real time.

    System Designsystem-designfeature-flagscdnstream-processing
  • Trees & GraphsMediumModel answer
    Crawl a Web-Served Labyrinth Through Unreliable Responses

    Write a crawler that explores a maze of HTTP endpoints to find the exit, coping with cycles, transient 503 errors and malformed JSON, while guaranteeing termination.

    Trees & Graphsgraph-traversalbfshttpretries
  • Statistics & ExperimentsMediumModel answer
    Four Growth Analytics Cases: Stories, Boosts, Creators, Logins

    Work through four product-growth scenarios using one framework: goal, metrics, funnel, data, hypotheses, one prioritized bet, and a validation plan.

    Statistics & Experimentsproduct-analyticsexperimentationfunnel-analysismetrics
  • System DesignMediumModel answer
    Tracing a Link Tap Through a Large Social Platform

    Explain what happens from the moment a user taps a link in a social app feed until the destination renders, covering client, network, backend, security, privacy and monitoring.

    System Designsystem-designnetworkingweb-performancesecurity
  • System DesignHardModel answer
    Org Chart Service: Hierarchy Storage and Safe Manager Moves

    Design a service for a large company's reporting structure that serves chain and subtree lookups quickly and keeps reporting lines acyclic under concurrent reorganizations.

    System Designsystem-designhierarchyclosure-tableconcurrency
  • StringsMediumModel answer
    Bootstrapping a Reproducible Python Environment with Bash

    Write and explain a Bash script that creates or reuses a Python virtual environment and installs dependencies, covering strict mode, idempotency, activation pitfalls, and resulting files.

    Stringsbashshell-scriptingpython-venvautomation
  • Data Structure DesignMediumModel answer
    Card Prefix Registry with Per-Field Trust Resolution

    Design an in-memory registry mapping digit prefixes to brand and card type, resolving each field by longest prefix, then trust, then recency, with fast lookups.

    Data Structure Designhash-maplongest-prefix-matchtriedata-structure-design
  • Statistics & ExperimentsMediumModel answer
    First-Pass Review of an Unknown Dataset: Quality and Charts

    Describe how you would inspect a dataset you have never seen, judge how trustworthy it is, and pick charts that help business stakeholders make a decision.

    Statistics & Experimentsedadata-qualityvisualizationmissing-data
  • Statistics & ExperimentsMediumModel answer
    Subscription Unit Economics, Contract Terms and Breakeven Volume

    Model per-customer contribution for a subscription with free months and one-time costs, then compute breakeven volume under a contract with early exits and rank the sensitivities.

    Statistics & Experimentsunit-economicsbreakevensensitivity-analysisexpected-value
  • Statistics & ExperimentsMediumModel answer
    Random vs Quota-Based Ad Placement in a 100-Post Feed

    Compare independent 4% ad placement with one-ad-per-25-post-block placement: ad count, tail risk, back-to-back ads, the product trade-off, and an A/B test plan.

    Statistics & Experimentsprobabilitybinomial-distributionab-testingexperiment-design
  • Statistics & ExperimentsHardModel answer
    Measuring Community Health and Testing Nested Replies

    Design a health measurement framework for online communities of very different sizes, compare them fairly, and plan an experiment for a nested-reply comment feature.

    Statistics & Experimentsmetricsab-testingcluster-randomizationexperiment-design
  • Statistics & ExperimentsHardModel answer
    Evaluating a Same-Day Delivery Checkout Experiment on Net Contribution

    Design the analysis of a two-arm checkout experiment: pick valid tests per metric, model cost and take-rate effects on contribution, find segments, and set constrained rollout rules.

    Statistics & Experimentsab-testingratio-metricsdelta-methodheterogeneous-treatment-effects
  • System DesignHardModel answer
    Fundraising Payments Backend: No Lost or Double Gifts

    Design a charity fundraising service that takes one-time and recurring gifts through a third-party payment processor, with exact amounts, no duplicate charges, and survival of traffic surges.

    System Designsystem-designpaymentsidempotencyledger
  • Machine LearningMediumModel answer
    Forecasting Hourly Dock Demand for a Bike-Share Station

    Design an ML pipeline that forecasts 24 hours of bike demand per station, covering target framing, leakage-safe features, validation, and model choice.

    Machine Learningtime-seriesforecastingfeature-engineeringdata-leakage
  • Statistics & ExperimentsMediumModel answer
    Audit a Flaky Free-Trial Rollout Function for Experiment Safety

    Find at least eight correctness and reliability bugs in a Python function that randomizes users into a free-trial test, then redesign it so the experiment and billing data stay trustworthy.

    Statistics & Experimentsexperimentationidempotencydata-integrityreliability
  • Machine LearningMediumModel answer
    Near-Duplicate Image Matching Pipeline for Rights Enforcement

    Design a pipeline that checks every uploaded image against a huge catalog of protected works, tolerating edits and partial reuse, at high throughput, under a tight latency limit, with a review workflow.

    Machine Learningml-system-designcomputer-visionann-searchembeddings
  • BehavioralMediumModel answer
    Two Career Stories: A Costly Defect and Winning Over Skeptics

    Prepare two structured behavioral answers: one about a high-impact production defect you diagnosed and fixed, and one about changing minds when you lacked formal authority.

    Behavioralbehavioraldebuggingincident-responseinfluence
  • BehavioralMediumModel answer
    Walking Through a Teammate Disagreement and Your Next Career Move

    A two-part behavioral prompt: tell a real story of a workplace disagreement, including cause, your actions and result, then explain why you want to move on and what you want next.

    Behavioralbehavioralconflict-resolutionSTARmotivation
  • Data Structure DesignMediumModel answer
    Fast Machine Selection for a Memory-Aware Table Placer

    Redesign a slow in-memory placer so it finds a machine with enough free RAM, resizes tables, and moves them quickly, while justifying a placement policy.

    Data Structure Designdata-structure-designbisectbest-fitscheduling
  • Statistics & ExperimentsHardModel answer
    Diagnosing and Testing Pickup Wait Estimates in a Ride Marketplace

    Explain what drives a ride-hailing pickup estimate, why it matters, why longer waits can correlate with higher conversion, and design a switchback test with a justified window length.

    Statistics & Experimentsexperimentationswitchbackcausal-inferencemarketplace
  • Statistics & ExperimentsMediumModel answer
    Testing a New Home-Feed Ranker: Experiment Design and Causal Methods

    Design an experiment for a new content-ranking model aimed at raising time spent: hypotheses, metrics, sample size, health checks, a mid-test dip, and a non-randomized geographic rollout.

    Statistics & Experimentsab-testingpower-analysisguardrail-metricsdifference-in-differences
  • System DesignMediumModel answer
    Live Bidding on Creator Posts: Hot-Auction Backend Design

    Design a backend where creators run timed auctions on posts, bids are ordered correctly under extreme contention, and millions of watchers see the leading bid within a fraction of a second.

    System Designsystem-designconcurrency-controlreal-timewebsockets
  • Statistics & ExperimentsMediumModel answer
    Turning a Vague Product Goal into an Experiment Plan

    Given an open-ended business goal, outline how you would define metrics, form hypotheses, plan instrumentation, run a first test, compare heuristic and ML options, and manage risks.

    Statistics & Experimentsexperiment-designmetricsab-testinghypotheses
  • BehavioralMediumModel answer
    Walk Through a Delivery That Slipped Past a Hard Date

    Describe a real project whose original timeline broke, covering early warning signs, your own actions, how you framed scope trade-offs to stakeholders, and what you changed afterward.

    Behavioralbehavioraldeadlinesownershipstakeholder-communication
  • Machine LearningMediumModel answer
    Vetting a Large Scraped Corpus Before Fine-Tuning a 7B Model

    Plan how to screen, score, and test a big low-trust dataset before mixing it into SFT and preference tuning, with ablations and clear release gates to avoid regressions.

    Machine Learningllm-post-trainingdata-curationsftdpo
  • Machine LearningMediumModel answer
    Leakage-Free Churn Model Pipeline Tuned for Average Precision

    Build a scikit-learn pipeline for a 5%-positive churn dataset: mixed-type preprocessing, imbalance handling, stratified CV, and tuning on precision-recall area instead of accuracy.

    Machine Learningscikit-learnclass-imbalancepipelinescross-validation
  • Greedy & IntervalsMediumModel answer
    Split Overlapping Support Windows by Who Is Covering

    Break a set of possibly overlapping staffed time windows into disjoint half-open segments, each labeled with the sorted set of people covering it, dropping gaps and merging equal neighbors.

    Greedy & Intervalssweep-lineintervalshash-mapsorting
  • Data Structure DesignMediumModel answer
    Timeline Lookup Store and Shared-Friend Suggestions

    Build a store that returns the latest value at or before a query time, then suggest new connections to a user based on having at least two friends in common.

    Data Structure Designbinary-searchhash-mapgraphdesign