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
273
Added today

Showing 5161–5190 of 6013 results

  • Statistics & ExperimentsHardModel answer
    Decompose Test MSE into Bias², Variance, and Noise

    Derive and numerically compute the bias-variance decomposition of MSE for a concrete estimator, then reason about model selection trade-offs.

    Statistics & Experimentsstatisticsbias-variance tradeoffMSEmodel selection
  • Machine LearningMediumModel answer
    Build a High-Throughput Audio ML Pipeline

    Design a distributed backend that runs multi-stage audio AI workloads at scale, handling both real-time and batch requests with efficient GPU use and granular recovery.

    Machine Learningml-systemsdistributed-systemsgpu-schedulingpipeline-orchestration
  • Greedy & IntervalsEasyAuto-graded
    Schedule Maximum Jobs Within Deadlines

    Tests the classic greedy exchange-argument insight: sort jobs by deadline to maximise the number of unit-length jobs completed before their deadlines.

    Greedy & Intervalsgreedyintervalssorting
  • Statistics & ExperimentsEasyModel answer
    Diagnosing a Sudden Drop in Day-14 Cohort Retention

    Walk through a structured investigation of an apparent D14 retention decline, separating measurement artifacts from real product regressions.

    Statistics & Experimentsretentioncohort-analysisright-censoringmetric-debugging
  • Greedy & IntervalsMediumAuto-graded
    Count Valid Sum Pairs

    Tests greedy two-pointer technique on sorted arrays to maximize disjoint pairs meeting a sum condition.

    Greedy & Intervalstwo-pointersgreedysorting
  • System DesignMediumModel answer
    Backend Architecture for a Live Fundraising Platform

    Design a scalable donation system handling 5k writes/sec with payment idempotency, real-time aggregation, and strict financial consistency.

    System Designpaymentsidempotencyreal-timefinancial-systems
  • BehavioralMediumModel answer
    Walk Me Through Your Most Impactful Engineering Delivery

    Articulate a career-defining project end-to-end: the problem, your personal ownership, the trade-offs you navigated, and the measurable outcomes you produced.

    Behavioralownershipimpactsenior-engineertrade-offs
  • Data Structure DesignMediumAuto-graded
    Build a Fixed-Size Cache That Forgets the Least-Used Entry

    Tests your ability to combine a hash map and an ordered structure to implement O(1) reads and writes with recency-based eviction.

    Data Structure Designhash-maplinked-listcachedesign
  • Statistics & ExperimentsHardModel answer
    Bootstrap vs. Analytic CIs: When and Why They Diverge

    Diagnose when a standard analytic confidence interval breaks down and construct a bootstrap CI from first principles, explaining the assumptions and trade-offs of each approach.

    Statistics & Experimentsstatisticsconfidence intervalsbootstrapasymptotic theory
  • System DesignMediumModel answer
    Promise Concurrency Combinators: all, any, allSettled

    Compare how Promise.all, Promise.any, and Promise.allSettled settle, handle failures, and order results, then pick the right one for three real service-orchestration scenarios.

    System Designjavascriptpromisesconcurrencyasync
  • Data Structure DesignMediumModel answer
    Build a Policy Engine for Expense Validation

    Create a rule evaluation system that checks expense submissions against JSON-defined policies without deploying new code.

    Data Structure Designdata-structuresparsingvalidation
  • BehavioralMediumModel answer
    Handling a Critical Design Issue Near Launch

    You find a serious problem with your system's architecture just before release. Explain your response strategy, decision framework, and communication approach.

    Behavioraldecision-makingcommunicationtechnical-judgmentcrisis-management
  • Machine LearningMediumModel answer
    Regression Loss Functions, Imbalanced Classification Metrics, and Thresholding

    Compare MAE vs MSE for regression, interpret ROC-AUC and PR-AUC under severe class imbalance, design loss functions for imbalanced neural networks, and select classification thresholds rigorously.

    Machine Learningloss-functionsclass-imbalanceevaluation-metricsclassification
  • System DesignHardModel answer
    Build a Remote Development Workspace Platform

    Architect a service that provisions isolated development environments accessible via SSH, with persistent storage, scheduled automation, and fault tolerance.

    System Designdistributed-systemsinfrastructuresecuritystorage
  • SQL & DataMediumModel answer
    Ad Group Funnel Metrics with Below-Mean CTR Filter

    Write a single SQL query that computes cost, CTR, and conversion metrics per ad group, then returns only those with CTR below the unweighted average.

    SQL & Datasqlctewindow-functionsnull-handling
  • BehavioralMediumModel answer
    Technical Disagreement and Goal Definition Under Pressure

    Navigate technical conflicts productively and transform vague team priorities into concrete, measurable objectives that drive execution.

    Behavioralleadershipconflict-resolutiongoal-settingcommunication
  • Statistics & ExperimentsMediumModel answer
    Targeting the Right Quantile When Errors Have Unequal Costs

    Derive which statistic each loss function optimizes, then translate an asymmetric stockout-vs-overstock cost ratio into a concrete quantile target.

    Statistics & Experimentsquantile regressionloss functionsforecastinginventory
  • Arrays & HashingMediumAuto-graded
    Count Close Point Pairs Within Distance Threshold

    Efficiently count pairs of points where both coordinate differences are at most 2, testing hash-based spatial grouping with duplicate handling.

    Arrays & Hashingarrayshashinggeometrycombinatorics
  • System DesignHardModel answer
    Eliminate Duplicates in a Personalized Content Feed

    Design a system that ensures each piece of content appears only once in the initial screen of a personalized homepage with multiple thematic rows.

    System Designdeduplicationpersonalizationrecommendation-systemscaching
  • Trees & GraphsMediumAuto-graded
    Count Separate Land Regions in a Grid

    Tests flood-fill traversal to identify connected components in a 2D grid with four-directional adjacency.

    Trees & Graphsgraphsbfsdfsconnected-components
  • Data Structure DesignMediumModel answer
    Data Structure Selection: Complexity and Trade-offs

    Analyze time and space complexity for standard data structures and explain when to use each based on access patterns and constraints.

    Data Structure Designdata-structurescomplexity-analysistrade-offs
  • System DesignHardModel answer
    Building a Two-Phase Transaction Processing Platform

    Design a service that processes both instant payments and deferred-settlement transactions with reserved funds, ensuring correctness under failures.

    System Designpaymentsdistributed-systemsconsistencystate-machines
  • Dynamic ProgrammingMediumAuto-graded
    Tile a Word Using a Vocabulary List

    Tests whether a candidate can apply forward-reachability DP with a trie to decide if a string can be fully covered by vocabulary words end-to-end.

    Dynamic Programmingdynamic-programmingstringstrie
  • BehavioralMediumModel answer
    Identifying and Resolving a Critical Skill Gap in Your Team

    Describe how you discovered your team was missing an essential capability, evaluated the impact, and took action to address it while maintaining delivery commitments.

    Behavioralleadershipteam-developmenthiringcoaching
  • System DesignHardModel answer
    Design a Fault-Tolerant Orchestration Engine for ML Pipelines

    Design a multi-tenant ML workflow scheduler that handles versioned DAGs, heterogeneous compute routing, data quality enforcement, and reproducible lineage tracking.

    System Designsystem-designmachine-learningdistributed-systemsorchestration
  • System DesignMediumModel answer
    Design a Photo-Sharing Platform with Social Feed and Discovery

    Build a scalable backend for uploading images, following users, generating personalized feeds, and suggesting new connections to follow.

    System Designdistributed-systemssocial-networksfeed-generationrecommendations
  • System DesignMediumModel answer
    Real-Time Fleet Data Platform Architecture

    Design a platform to monitor live telemetry from electric vehicles, covering data collection, ingestion, storage, APIs, and operational controls.

    System Designreal-time-systemsdata-ingestionAPI-designIoT
  • System DesignHardModel answer
    Troubleshooting Production Performance in a Microservices Platform

    Debug and resolve a microservices system suffering from elevated latency, errors, and scaling instability using observability data and incident response.

    System Designkubernetesobservabilityincident-responseperformance
  • StringsMediumAuto-graded
    Maximum Unique Character Window

    Tests sliding window technique with hash map to track character positions and find the longest contiguous segment with all distinct characters.

    Stringssliding-windowhash-maptwo-pointers
  • Statistics & ExperimentsMediumModel answer
    Measuring True Value of a New Social Feature Beyond Adoption Metrics

    Design metrics and an experiment to evaluate whether a new in-group feature creates genuine platform value or merely shifts existing engagement.

    Statistics & Experimentsexperimentationmetricscausalitynetwork-effects