KatInterview

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

Interview Practice Problems

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

5986
Problems
2219
Auto-graded
15
Topics
271
Added today

Showing 331–360 of 3767 results

  • Machine LearningMediumModel answer
    Enterprise Data Asset Retrieval for Autonomous Coding Agents

    Design a multi-stage retrieval system that surfaces the right database tables and analytical notebooks for an internal AI coding assistant answering data queries.

    Machine LearningInformation RetrievalRAGSystem DesignML System Design
  • System DesignHardModel answer
    Tracing a 4 GiB Allocation, Swap Stalls, and the Cost of Inlining

    Walk through how a huge allocation becomes virtual and physical memory on Linux, why swap hurts tail latency, and what C++ inline means for linkage and the CPU.

    System Designoperating-systemsvirtual-memorylinuxcpp
  • Statistics & ExperimentsEasyModel answer
    Correcting Size-Biased Sampling to Estimate Daily Guest Totals

    Estimate total guests who show up across all reservations from a sample drawn proportionally to party size, correcting the bias and giving a confidence interval.

    Statistics & Experimentssize-biased-samplinginverse-probability-weightingsurvey-samplingconfidence-interval
  • Statistics & ExperimentsMediumModel answer
    Investigating a Weekly Drop in Created Items and Testing a Suggestion Feature

    Diagnose a 15% weekly drop in a creation metric after a partial feature rollout, then design a cluster-randomized A/B test that handles shared-workspace interference.

    Statistics & Experimentsab-testingmetric-investigationnetwork-effectscluster-randomization
  • BehavioralMediumModel answer
    Present a Risk Modeling Project to a Non-Technical Screener

    Practice turning a past risk modeling project into a short, business-focused story that shows your ownership, sound modeling judgment under regulation, and measurable results.

    Behavioralbehavioralrisk-analyticsstorytellingstar-method
  • SQL & DataMediumModel answer
    Filtering Merchants by Chargeback Rate: Row vs Group Filters

    Find merchants whose 30-day chargeback rate exceeds 0.5% and explain why the rate filter belongs after grouping, plus dialect quirks and performance implications.

    SQL & Datasqlgroup-byhavingaggregation
  • SQL & DataMediumModel answer
    Pandas Activity Metrics: Local Dates, Rolling Windows, Retention

    Build daily active users, rolling averages, per-user rolling counts and week-over-week retention from a UTC event log, using timezone-correct, vectorized Pandas.

    SQL & Datapandastime-seriesgroupbyrolling-window
  • System DesignHardModel answer
    Building an Outbound Voice Dialer That Survives Campaign Bursts

    Design a multi-tenant service that places API-driven phone calls through carriers with hard channel and CPS limits, stays fair under bursts, and tracks call state reliably.

    System Designsystem-designqueueingbackpressurerate-limiting
  • Machine LearningMediumModel answer
    Designing and Deploying an End-to-End ML Pipeline

    Walk through an end-to-end machine learning project lifecycle, covering framing, architecture, validation, monitoring, and causal business impact.

    Machine Learningml-opsmodel-deploymentfeature-storedata-leakage
  • System DesignMediumModel answer
    Build a Global Remittance Platform: FX, Compliance, Payouts

    Design a service that lets users send money abroad with live FX quotes, fees, limits, multiple funding and payout options, status tracking, refunds and notifications.

    System Designsystem-designpaymentsidempotencysaga
  • Statistics & ExperimentsMediumModel answer
    Testing a Notification-First Account Switcher Ordering

    Judge whether sorting a user's accounts by pending notifications beats sorting by recency, using past logs first and then a well-scoped randomized experiment.

    Statistics & Experimentsab-testingcausal-inferenceposition-biastriggered-analysis
  • Data Structure DesignMediumModel answer
    What Java's volatile Does and Does Not Guarantee

    Explain the Java Memory Model guarantees of volatile fields: visibility, happens-before ordering and reordering limits, its gaps such as compound atomicity, and when to prefer locks or atomics.

    Data Structure Designjavaconcurrencymemory-modelvolatile
  • BehavioralMediumModel answer
    Defending a Major Engineering Project You Led End to End

    Present a significant system you built, covering the problem, your exact role, key design choices, a real failure, and measurable results, then withstand deep follow-up questions on it.

    Behavioralbehavioralproject-deep-diveownershiptrade-offs
  • System DesignMediumModel answer
    Design a GPU Job Scheduler for Text-to-Video Generation

    Design an asynchronous GPU scheduling service for single-GPU text-to-video jobs, featuring weighted fair queueing, fault tolerance, and lease-based worker management.

    System Designsystem-designjob-schedulerdistributed-systemsgpus
  • Statistics & ExperimentsMediumModel answer
    Diagnosing a Sudden KPI Shift and Testing the Remedy

    Explain how to find the root cause of an abrupt move in a core product metric, then design and analyze a controlled experiment that checks whether a proposed fix actually works.

    Statistics & Experimentsroot-cause-analysisab-testingexperiment-designmetrics
  • System DesignMediumModel answer
    Build a Playbook-Driven Contract Review Pipeline with Citations

    Design an asynchronous service that checks contracts against versioned rule sets, cites exact text spans, proposes edits, assigns a risk tier, and lets reviewers override results.

    System Designsystem-designllm-agentstraceabilitymulti-agent
  • SQL & DataMediumModel answer
    Flatten Event Logs and Build User Segments in pandas

    Turn a table of nested event lists and attribute dicts into a flat event table, per-user features, and segment conversion rates using pandas without row loops.

    SQL & Datapandasdata-manipulationexplodegroupby
  • Machine LearningMediumModel answer
    Nine-Part ML Fundamentals and Model Diagnostics Review

    Answer nine practical questions on statistical testing, model fit, causality, representations, optimization, imbalanced data, misleading accuracy, and experiment sanity checks.

    Machine Learningml-fundamentalsbias-variancegradient-descentimbalanced-data
  • System DesignHardModel answer
    Spark Internals and Performance Tuning for Lake Pipelines

    Explain how Spark defers and runs work across a cluster, then show how that execution model guides a measured approach to tuning slow batch and streaming jobs on Parquet/Delta data.

    System Designsparkpysparkdata-engineeringperformance-tuning
  • System DesignMediumModel answer
    Choosing Safe Meeting Spots for a Ride-Hailing Trip

    Design a service that picks a legal, safe, and convenient meeting spot for a rider and driver, balancing walking time, driver arrival time, and confidence.

    System Designsystem-designmapsroutingranking
  • System DesignMediumModel answer
    Build the Backend for a Multi-User Live Text Editor

    Design a backend that lets many people edit one text document at once, keeps every replica converged, persists edits with history, and recovers cleanly from disconnects and server crashes.

    System Designsystem-designreal-time-collaborationoperational-transformationcrdt
  • Data Structure DesignHardModel answer
    Append-Only Log Storage Engine with Torn-Write Recovery

    Build an embedded byte-oriented key-value store on a checksummed append-only log, with an in-memory index, delete markers, thread safety and recovery that truncates a damaged tail.

    Data Structure Designstorage-engineappend-only-logcrash-recoverycrc32
  • System DesignMediumModel answer
    Resumable Parallel Fetcher for Versioned ML Model Files

    Design a fetcher that pulls a multi-file model in parallel byte ranges, survives failures without redoing verified work, and exposes the model only when complete and consistent.

    System Designsystem-designresumable-downloadsbyte-rangesintegrity-verification
  • System DesignMediumModel answer
    Design a Flash Sale System with Virtual Waiting Room

    Architect a high-concurrency item drop system using edge-cached waiting queues, zero-oversell inventory reservation, and idempotent payment processing.

    System Designsystem-designdistributed-systemsredisrelational-database
  • BehavioralMediumModel answer
    Three Behavioral Stories: Persuasion, Data Calls, and a Failure

    Prepare three distinct stories for a hiring-manager round: persuading peers without formal power, making a hard data-backed call, and owning a failure with a real change in behavior.

    Behavioralbehavioralleadershipinfluencestar-method
  • BehavioralMediumModel answer
    Four Engineering Stories: Initiative, Uncertainty, Root Cause, Disagreement

    Prepare four structured stories for a new-grad engineering behavioral round, covering initiative, unclear requirements, root-cause investigation and a disagreement with a teammate.

    Behavioralbehavioralownershipambiguityconflict
  • System DesignMediumModel answer
    Designing a Self-Checking UVM Environment for a Streaming RTL Block

    Explain how to verify a valid/ready RTL block using UVM: environment structure, an out-of-order-safe scoreboard, and coverage-driven closure to sign-off.

    System Designuvmsystemverilogdesign-verificationscoreboard
  • Statistics & ExperimentsMediumModel answer
    Planning Metrics and an A/B Test for a Marketplace Search Feature

    Design the metric set, guardrails, randomization unit, sample size and monitoring plan for a new feature in a two-sided booking marketplace, before any code is built.

    Statistics & Experimentsab-testingmetricspower-analysisguardrails
  • Trees & GraphsMediumModel answer
    Friend Product Suggestions and Click-Path Reachability

    Two short coding tasks: suggest products that a user's friends bought but the user hasn't, and decide whether one URL can reach another through recorded navigation steps.

    Trees & Graphshash-setset-differencegraphbfs
  • Machine LearningHardModel answer
    Predicting Late Arrivals: Leakage-Safe Flight Delay Modeling

    Design a leakage-safe pipeline that predicts 15+ minute late arrivals from pre-departure data: audits, time-based validation, models, explanations, stress tests, and an A/B plan.

    Machine Learningdata-leakagetime-series-validationlightgbmcalibration