KatInterview

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

Interview Practice Problems

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

6037
Problems
2236
Auto-graded
15
Topics
273
Added today

Showing 2611–2640 of 3801 results

  • Machine LearningMediumModel answer
    Designing an Agent That Writes and Tunes GPU Kernels

    Design an agent that generates and optimizes GPU kernels and compiler passes, covering validation strategy, correctness checks, numerical tolerances, and performance evaluation.

    Machine Learningml-systemscompilersgpuagents
  • Statistics & ExperimentsHardModel answer
    A/B Test Design with Clustered Users and Sequential Looks

    Design a statistically rigorous A/B test that accounts for within-cluster correlation and daily interim checks while controlling the false-positive rate.

    Statistics & Experimentsa/b testingpower analysissequential testingclustered randomization
  • BehavioralMediumModel answer
    Marketplace PM Behavioral: Motivation, Growth Areas, and Execution

    Answer three behavioral prompts for a two-sided marketplace PM role: your interest in the company, a weakness you're addressing, and leading cross-functional delivery.

    Behavioralproduct-managementmarketplaceleadershipself-awareness
  • Machine LearningHardModel answer
    Nearby Venue Feed: Real-Time Top-K Ranking as You Explore a Map

    Design a low-latency system that surfaces the most relevant K venues within a moving map viewport, covering spatial indexing, candidate retrieval, personalized re-ranking, and caching.

    Machine Learningml-system-designgeospatialretrievalranking
  • Machine LearningHardModel answer
    Dynamic Retrieval Depth Selection in a Recommender Pipeline

    Design a system that decides, per request, how many candidates to pass from the recall stage to the heavy ranker in a recommender system.

    Machine Learningrecommender systemsretrieval-rankingcompute optimizationML system design
  • BehavioralMediumModel answer
    Behavioral Interview Mastery: STAR Answers for SWE Onsites

    Practice the ten most common behavioral questions asked in software engineering onsites using the STAR framework with quantified impact.

    BehavioralSTAR frameworkleadershipownershipconflict resolution
  • System DesignMediumModel answer
    Design a Multi-Cloud GPU Fleet Manager CLI

    Design the architecture and reconciliation logic for a CLI tool that provisions and manages GPU VMs across heterogeneous cloud providers.

    System Designclistate-managementidempotencycloud
  • Machine LearningMediumModel answer
    Course recommender aligned to a user's target job skills

    Design an end-to-end system that suggests learning courses matching a user's job-search or role goals, including job-posting text extraction, ranking, evaluation, and guardrails.

    Machine Learningrecommender-systemsfeature-engineeringrankingcold-start
  • Data Structure DesignMediumModel answer
    Random Draw from a Mutable Membership Set in O(1)

    Build a container that registers and removes integer keys and returns a uniformly random current key, all in average constant time.

    Data Structure Designhash-maparrayrandomizedconstant-time
  • Machine LearningHardModel answer
    Design a Real-Time and Batch AI Model Serving Platform

    Design a cloud inference platform that serves ML models at scale, covering hardware selection, autoscaling, multi-tenancy, cost controls, and safe deployment strategies.

    Machine Learningml-system-designinferencekubernetesgpu
  • System DesignMediumModel answer
    Frontend System Design: Multi-Device Photo Albums

    Design the client architecture, normalized state, paginated sorted photo lists, direct-to-storage uploads, and near-real-time sync for a multi-device photo album web app.

    System Designfrontendstate-managementreal-timefile-upload
  • Machine LearningMediumModel answer
    Minimize Squared Error: Deriving the OLS Slope and Intercept

    Derive the closed-form least-squares estimators for a simple linear model by minimizing MSE, and reason through what breaks when input variance is zero.

    Machine Learninglinear-regressioncalculusOLSstatistics
  • System DesignHardModel answer
    Design a Consent-Aware Distributed Load-Shedding System

    Design a distributed controller that sheds megawatts of electrical load across millions of smart devices within seconds while honoring user preferences, device safety rules, and fairness.

    System Designdistributed-systemsreal-timeoptimizationiot
  • Machine LearningHardModel answer
    Diagnosing and Fixing Fragility in Marketing Mix Models

    Identify and resolve common failure modes in a marketing mix model with correlated channels, structural breaks, and endogeneity.

    Machine Learningcausal-inferencemarketing-analyticsbayesian-methods
  • BehavioralEasyModel answer
    Walk Me Through a Complex Technical Project You Owned

    Present a significant technical project end-to-end, covering architecture decisions, trade-offs, your personal ownership, a real obstacle you overcame, and measurable outcomes.

    Behavioralstorytellingsystem-designownershiptrade-offs
  • Statistics & ExperimentsMediumModel answer
    Real-Time Payment Approval: Risk Scoring and Rule Design

    Walk through accept/decline decisions for two flagged transactions and design at least three fraud-mitigation strategies, explaining the false-positive vs. chargeback trade-off.

    Statistics & Experimentsfraud detectionexperiment designrisk scoringthreshold optimization
  • Statistics & ExperimentsMediumModel answer
    Design an A/B Test for an Autonomous Vehicle Model Update

    Design a statistically sound online experiment to evaluate a path-planning model change in a fleet of autonomous vehicles operating in a shared traffic environment.

    Statistics & ExperimentsA/B testingcausal inferenceexperiment designinterference
  • Greedy & IntervalsMediumModel answer
    Packing a Fixed-Size Block from a Large Mempool with CPFP

    Design a fee-maximizing transaction selector for a size-capped block, extend it to parent/child dependencies with CPFP scoring, and derive a minimum child fee.

    Greedy & Intervalsgreedyknapsackdependency-trackingcryptocurrency
  • BehavioralMediumModel answer
    Taking on Unfamiliar Work: Growth Through Calculated Risk

    Describe a time you chose work outside your expertise, why you took it, how you prepared, and how it shaped your approach afterward.

    Behavioralbehavioralleadershipgrowth-mindset
  • Trees & GraphsMediumModel answer
    Minimum Arrival Time in a Scheduled Transit Network

    Find the earliest time a traveler can reach a destination station given a fixed train timetable, then reconstruct the full itinerary with transfers and waits.

    Trees & Graphsgraph-searchdijkstrabfstime-expanded-graph
  • Statistics & ExperimentsMediumModel answer
    Causal Inference with Propensity Scores in Observational Studies

    Explain propensity score matching, when to use it for causal inference, what assumptions must hold, and how to verify that matching produced comparable groups.

    Statistics & Experimentscausal-inferencepropensity-scoresexperimental-designstatistics
  • SQL & DataHardModel answer
    Multi-Stage Funnel Analysis in SQL: Windows, Dedup & Rollups

    Write ANSI-SQL to build a windowed conversion funnel, attribute acquisition channels, flag bot-like campaigns, deduplicate near-duplicate events, and compute rolling unique viewers.

    SQL & Datafunnel-analysiswindow-functionsCTEsdeduplication
  • BehavioralMediumModel answer
    Navigating Conflict, Ambiguity, and Team Dynamics

    Demonstrate collaboration, leadership, ethical judgment, and adaptability through structured behavioral stories grounded in real actions and measurable outcomes.

    Behavioralconflict-resolutionleadershipteamworkambiguity
  • System DesignMediumModel answer
    Design a Distributed Cache for High-Traffic Static Assets

    Design a globally distributed caching layer that serves small static assets at hundreds of thousands of requests per second with sub-50ms latency and resilience to origin failures.

    System Designcachingcdndistributed-systemsscalability
  • Statistics & ExperimentsHardModel answer
    Quantifying Revenue Lift After a Global Feature Rollout with No Control Group

    Design a multi-strategy observational study to estimate causal impact on revenue and retention when a feature launched everywhere simultaneously, leaving no holdout.

    Statistics & Experimentscausal inferenceexperimentationobservational methodsdifference-in-differences
  • Machine LearningMediumModel answer
    Building a Policy-Driven Support Assistant with RAG

    Design an ML system that transforms company policy documents into actionable support workflows with evidence tracking and version control.

    Machine Learningragnlpml-systemspolicy-grounding
  • BehavioralMediumModel answer
    Engineering Manager Deep Dive: Promotions, Conflict, and PIPs

    Three people-management scenarios for an EM role: making a promotion case, resolving team conflict, and running a performance improvement plan.

    Behavioralengineering-managerpeople-managementpromotionsconflict-resolution
  • System DesignMediumModel answer
    Real-Time Top-K Noisy-Service Ranker Over a Rolling Window

    Design an end-to-end pipeline that ingests high-volume error events and serves a live ranking of the K noisiest services over the last five minutes.

    System Designstream-processingsliding-windowtop-khot-keys
  • Machine LearningHardModel answer
    Designing a Restaurant Ranking System for a Food Delivery App

    Design an end-to-end personalized ranking system for a food delivery home feed, covering objectives, features, model architecture, evaluation, and feedback loops.

    Machine Learningrankingrecommendation-systemsmulti-task-learningfeature-engineering
  • BehavioralHardModel answer
    Six Core Behavioral Stories for Software Engineers

    Practice answering six behavioral questions — challenge, cross-team work, mentoring, criticism, ambiguity, and disagreement — with specific stories and clear personal ownership.

    BehavioralbehavioralleadershipSTARcommunication