KatInterview

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

Interview Practice Problems

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

6066
Problems
2248
Auto-graded
15
Topics
275
Added today

Showing 2131–2160 of 3818 results

  • System DesignMediumModel answer
    Real-Time Ranking Service for Delivery Couriers

    Design a high-throughput system that ingests courier ratings and serves a low-latency top-K leaderboard under eventual consistency.

    System Designleaderboardrediskafkaaggregation
  • Trees & GraphsMediumModel answer
    Minimum Spread Time for Contamination in a Grid

    Find how many steps a contamination spreads from multiple sources through a grid, or determine if some cells remain permanently unaffected.

    Trees & GraphsBFSmulti-source BFSgrid traversalshortest path
  • Statistics & ExperimentsHardModel answer
    Design a Video-Ad Format Experiment and Diagnose a Null Result

    Design a rigorous A/B test for a new video-ad format end-to-end, then walk through a structured diagnostic playbook if the primary metric shows no lift.

    Statistics & ExperimentsexperimentationA/B testingcausal inferencepower analysis
  • System DesignMediumModel answer
    LLM-Powered Review Digest Pipeline with Injection Defenses

    Design a system that ingests untrusted mobile app reviews at scale and produces safe, LLM-generated theme digests for internal product teams.

    System Designllmprompt-injectionpiipipeline
  • System DesignHardModel answer
    Build a Fault-Tolerant Job Scheduler for Async Workflows

    Design a distributed scheduling service that fires one-time and recurring jobs on time, at scale, without losing a single task across node failures or clock drift.

    System Designdistributed-systemsschedulingfault-tolerancequeues
  • System DesignMediumModel answer
    In-Memory Store with Sliding-Window Request Counter

    Design a thread-safe key-value store that tracks how many operations occurred in any recent time window, without storing one entry per request.

    System Designconcurrencymetricsring-bufferkey-value-store
  • System DesignHardModel answer
    Building a Durable Workflow Orchestrator Across Microservices

    Design a fault-tolerant engine that runs multi-step service workflows with ordering, retries, compensation, and exactly-once side effects.

    System Designworkflow-orchestrationdistributed-systemsidempotencysaga-pattern
  • SQL & DataMediumModel answer
    E-commerce Event Aggregation: Metrics and Ranking

    Aggregate event logs to compute shop exposure metrics, normalize by observation period, rank within categories using window functions, and segment user engagement by tenure.

    SQL & Dataaggregationwindow-functionsjoinscase-expressions
  • System DesignMediumModel answer
    Two-Sided Local Services Feature Inside a Social Platform

    Design a home-repair hiring product embedded in a major social platform, covering user segmentation, trust mechanics, marketplace dynamics, and success metrics.

    System Designproduct designmarketplacetrust and safetymetrics
  • Statistics & ExperimentsHardModel answer
    Measuring Incremental Value of a Free-Month Subscription Offer

    Design an A/B test for a one-month-free subscription promo, separate true lift from subsidy and wait-and-see effects, and compute net ROI under a 10/90 split.

    Statistics & Experimentsexperimentationcausal-inferenceroicannibalization
  • BehavioralHardModel answer
    Own Your Work and Defend Your AI Principles

    Demonstrate technical ownership through project deep-dives, articulate a reasoned position on AI safety, and show you can navigate values-based disagreements with colleagues.

    BehavioralleadershipAI safetyconflict resolutiontrade-offs
  • Data Structure DesignHardModel answer
    Live Spreadsheet with Eager Caching and Cycle Guards

    Build a spreadsheet engine where every write pre-computes all downstream values so reads are O(1) cache lookups, and circular definitions are rejected atomically.

    Data Structure Designgraphstopological-sortcycle-detectiondependency-tracking
  • System DesignMediumModel answer
    Real-Time IoT Device Monitoring System

    Build a scalable backend to track health status for millions of IoT devices sending periodic check-ins and quickly identify unresponsive units.

    System Designdistributed-systemsreal-timeiotscalability
  • BehavioralMediumModel answer
    Lessons, Pushback, Impact, and Ethics: Four PM Reflections

    Practice four core behavioral prompts — failure, dissent, success, and data ethics — that reveal how a PM thinks, leads, and makes judgment calls.

    Behavioralfailure & learninginfluencing without authoritymeasuring impactdata ethics
  • System DesignMediumModel answer
    Async API for Large-Scale Directory Traversal

    Build a non-blocking API and worker system to crawl millions of files across cloud storage accounts with progress tracking and fault tolerance.

    System Designasync-jobsdistributed-systemsscalability
  • Statistics & ExperimentsHardModel answer
    Diagnose a Sudden Revenue Decline

    Walk through a structured investigation of an unexpected revenue drop, from metric validation to funnel decomposition, segmentation, and causal reasoning.

    Statistics & Experimentsanalyticsmetricsroot-cause analysisfunnel
  • Statistics & ExperimentsHardModel answer
    Two-Sample Z-Test: Compute Minimum Experiment Size

    Given historical metric data and test parameters, derive the smallest total sample size that meets a specified significance level and statistical power.

    Statistics & Experimentsstatisticsa/b testinghypothesis testingpower analysis
  • BehavioralMediumModel answer
    Recount a Technical Decision You'd Reverse Today

    Walk through one significant engineering choice you made, why it was reasonable at the time, what you'd do instead now, and how the lesson changed later behavior.

    Behavioralreflectionownershiptradeoffstechnical-judgment
  • Statistics & ExperimentsMediumModel answer
    OLS Derivation, CLT Approximation, and Kelly Betting

    Derive the OLS slope estimator, apply the CLT to a Bernoulli sample mean, and find the Kelly-optimal bet fraction for a biased coin.

    Statistics & Experimentslinear-regressioncentral-limit-theoremkelly-criterionprobability
  • BehavioralMediumModel answer
    Walk Through a Project You Led End to End

    Describe your most impactful project — goal, your role, design trade-offs, measured impact, a real failure, and what you'd redo — as a structured, quantified narrative.

    Behavioralproject-deep-diveownershiptrade-offsmetrics
  • BehavioralMediumModel answer
    Telling a Difficult-Situation Story That Holds Up Under Follow-Ups

    Build one well-structured story about your hardest work challenge that answers both "hardest challenge" and "difficult situation" prompts, with a backup ready.

    Behavioralbehavioralstorytellingsenior-engineercommunication
  • System DesignMediumModel answer
    Design a Task Execution Platform with Timing Guarantees

    Build a distributed system to run scheduled and recurring tasks at scale with latency SLAs and full execution traceability.

    System Designdistributed-systemsschedulingreliabilityobservability
  • System DesignMediumModel answer
    Scaling a High-Throughput Financial Ledger: Architecture Trade-offs

    Design a transaction ledger handling 50k TPS with ACID guarantees, choosing between monolith and microservices and between sharding and replication.

    System Designdistributed-systemsdatabase-scalingconsistencymicroservices
  • System DesignMediumModel answer
    Sharded Full-Text Search for Multi-Tenant Tables

    Design a near-real-time, sharded full-text search layer over large structured tables with sub-200ms reads and petabyte scale.

    System Designsearchshardingcdcconsistency
  • StringsMediumModel answer
    Config-Driven CSV Validator with Name Overlap Check

    Write a configurable validator that flags missing fields, length violations, banned words, and low name-word overlap across CSV vendor rows.

    Stringscsv-parsingvalidationregextext-normalization
  • Machine LearningHardModel answer
    Uncover What Drives Listing Conversions in a Ride-Share Marketplace

    Design an end-to-end analysis to find which listing, host, and market features causally drive booking conversion, then validate findings with experiments.

    Machine Learningcausal inferenceproduct analyticsfeature importanceexperimentation
  • Statistics & ExperimentsMediumModel answer
    Walk Through Your Model's Assumptions and How You Tested Them

    Explain the key assumptions behind a past modeling project, how you validated each one, and how you kept your pipeline free of leakage and overfitting.

    Statistics & Experimentsexperimentationmodel-validationdata-leakageoverfitting
  • BehavioralMediumModel answer
    Navigating Blocked Dependencies and Ownership Ambiguity

    Demonstrate your ability to unblock stalled cross-functional work and resolve unclear ownership boundaries while preserving collaborative relationships.

    Behavioralcollaborationstakeholder-managementconflict-resolutionleadership
  • Statistics & ExperimentsMediumModel answer
    Should You Run a Below-Cost Seasonal Promotion?

    Evaluate a money-losing product promotion by defining the right metrics, estimating true incrementality, and surfacing strategic justifications with supporting evidence.

    Statistics & Experimentsexperiment designincrementalityretail analyticsmetric definition
  • Data Structure DesignMediumModel answer
    Build an In-Memory Key-Value Store with Savepoints

    Design a transactional key-value store supporting nested transactions, named savepoints, and full rollback using an undo-log approach.

    Data Structure Designtransactionsundo-logkey-value-storenested-transactions