KatInterview

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

Interview Practice Problems

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

6040
Problems
2237
Auto-graded
15
Topics
275
Added today

Showing 4771–4800 of 6040 results

  • 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
  • Arrays & HashingEasyAuto-graded
    Daily-Deal Voucher: Restaurant Profit & Break-Even Analysis

    Tests whether you can build a contribution-margin model for a voucher partnership, solve break-even and sensitivity equations, and decompose a profit change into its drivers.

    Arrays & Hashingunit economicscontribution marginbreak-even analysis
  • 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
  • Trees & GraphsMediumAuto-graded
    Minimum Hops Between Nodes in a Matrix-Represented Graph

    Tests ability to implement BFS on an undirected unweighted graph stored as an adjacency matrix to find the fewest edges between two nodes.

    Trees & Graphsgraphsbfsadjacency-matrix
  • 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
  • Trees & GraphsMediumAuto-graded
    Minimum Collections to Link Two Items

    Tests bipartite graph traversal and BFS to find shortest paths alternating between items and their containing collections.

    Trees & Graphsgraph-theorybfsbipartite-graph
  • Data Structure DesignMediumAuto-graded
    Simulate a Stack with Instant Maximum Access

    Tests data structure design skills by building a stack that supports O(log n) max retrieval and removal, including removal from the middle when duplicates exist.

    Data Structure Designstackheaplinked-listlazy-deletion
  • Greedy & IntervalsMediumAuto-graded
    Fill a Cargo Hold for Maximum Value With Limited Item Supply

    Tests whether a candidate can recognize that a bounded knapsack with uniform item weight reduces to a greedy sort-and-fill, handling large capacities and stock counts efficiently.

    Greedy & Intervalsgreedysortingbounded-knapsack
  • Data Structure DesignMediumAuto-graded
    Execute Banking Operations with Transaction History

    Tests command-pattern operation execution, input validation, atomic state transitions, and maintaining per-entity audit logs.

    Data Structure Designsimulationvalidationstate-management
  • 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
  • Stacks & QueuesMediumAuto-graded
    Concert Venue Ticketing with Capacity and a Waiting Line

    Tests event-driven simulation skills: tracking visitor state, enforcing a seating capacity, managing a FIFO waitlist, and collecting one-time entry fees.

    Stacks & Queuessimulationqueuehash-set
  • Data Structure DesignMediumAuto-graded
    Build a Multi-User File System with Quotas and Compression

    Design an in-memory file manager tracking per-user storage limits, file operations, pattern matching, and size adjustments with atomic quota enforcement.

    Data Structure Designhash-tablessimulationdesign
  • 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
  • Dynamic ProgrammingHardAuto-graded
    Count Sorted Sequences Matching Per-Position Digit Sums

    Tests dynamic programming over value buckets with a two-pointer prefix-sum transition to count sorted integer sequences under a digit-sum constraint.

    Dynamic Programmingdynamic-programmingarraysmath-bits
  • 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
  • StringsMediumAuto-graded
    Highest Frequency Letter with Alphabetical Tie-Breaking

    Tests efficient character frequency counting and consistent tie-breaking using fixed-size auxiliary space.

    Stringsstringsarraysfrequency-counting
  • Math & Bit ManipulationMediumAuto-graded
    Longest Non-Overlapping Character Chain

    Tests backtracking or bitmask optimization to select a subset of strings whose combined characters are all distinct.

    Math & Bit Manipulationbacktrackingbit-manipulationrecursion
  • SQL & DataEasyAuto-graded
    Co-Access Analytics on Document Usage Logs

    Tests data deduplication, self-joins, metric definition, and grouped aggregation over access logs with user metadata.

    SQL & Datadata-manipulationaggregationjoinsdeduplication
  • 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
  • StringsMediumAuto-graded
    Fix a Row-to-CSV Converter: Output Correctness and Efficiency

    Tests whether a candidate can spot a trailing-comma output bug and a quadratic string-building performance problem, then write a correct, efficient fix.

    Stringsstringsperformancejoins
  • 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