KatInterview

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

Interview Practice Problems

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

6049
Problems
2239
Auto-graded
15
Topics
272
Added today

Showing 2401–2430 of 3810 results

  • Machine LearningMediumModel answer
    Debugging an Input-Starved Training Pipeline

    Diagnose stalled GPU utilization across storage, CPU transforms, and transfer, then design a bounded, reproducible prefetch pipeline.

    Machine Learningdata-loadinggpu-utilizationperformancetraining-infrastructure
  • System DesignMediumModel answer
    Build a Multi-User Prompt Editor with Versioning and Execution

    Design a system where teams edit prompts collaboratively, snapshot immutable versions, run them against LLMs, and trace results back to exact inputs.

    System Designcollaborationversioningasync-execution
  • System DesignHardModel answer
    Real-Time Sliding Window Visit Counter

    Design a system that tracks website page views over a rolling 60-second window and serves the current count with low latency at high traffic volumes.

    System Designstreamingrediskafkarate-limiting
  • Statistics & ExperimentsMediumModel answer
    Estimate Pi Empirically with Minimal Tools to Six Decimal Places

    Design a die-and-cardboard Monte Carlo experiment that estimates π, then derive how many trials five to six correct decimal places demand and how to realistically get there.

    Statistics & Experimentsmonte-carloprobabilityvariance-reductionerror-analysis
  • Statistics & ExperimentsMediumModel answer
    Rare-Event AV Safety Estimation with Importance Sampling

    Design a biased-sampling simulation study that estimates a ~1-in-10,000-mile collision rate within a 50k-run budget, reports calibrated uncertainty, and validates the extrapolation.

    Statistics & Experimentsimportance-samplingrare-eventsvariance-reductionsimulation
  • BehavioralMediumModel answer
    Using AI Tools in Your Workflow and Delegating to Autonomous Agents

    Describe how you incorporate AI tooling into daily engineering work and explain when you would trust an autonomous agent to execute tasks on your behalf.

    Behavioralai-toolsengineering-judgmentrisk-assessment
  • System DesignMediumModel answer
    Design a Secure Multi-Region Log Aggregation Pipeline

    Design a system that collects, encrypts, and stores logs from distributed edge nodes into centralized storage while ensuring confidentiality and integrity.

    System Designdistributed-systemssecurityencryptiondata-pipeline
  • Machine LearningMediumModel answer
    From Demonstrations to Preferences: SFT, DPO and PPO Compared

    Explain SFT's token-likelihood objective, DPO's pairwise log-ratio loss, and how PPO fits into KL-regularized post-training.

    Machine Learningpost-trainingDPOPPOSFT
  • Statistics & ExperimentsEasyModel answer
    Picking Classification Metrics for an Imbalanced Medical Test

    Choose and justify evaluation metrics for a rare-disease screening model where false negatives and false positives carry very different costs.

    Statistics & Experimentsclassificationmetricsclass-imbalanceconfusion-matrix
  • Machine LearningEasyModel answer
    Choosing Between AI and Deterministic Logic in Product Features

    Decide when a feature should use a model versus plain code, covering fit criteria, anti-patterns, AI-native design, and cost/trust trade-offs.

    Machine Learningproduct-senseml-strategyml-system-designai-native
  • Machine LearningMediumModel answer
    Fix a broken medical message routing classifier

    Debug a telehealth triage service that returns wrong categories with negative confidence scores, then redesign the classification and escalation logic.

    Machine Learningml-debugginghealthcaresafety-criticalapi-design
  • BehavioralEasyModel answer
    Challenging Project, Preferred Work Setting, Job Priorities, and Outside Interests

    Four concise behavioral prompts covering your hardest project, the conditions you work best in, what matters to you in a role, and your hobbies.

    Behavioralbehavioralcommunicationself-awareness
  • System DesignHardModel answer
    Present and defend a distributed system you personally built

    Walk through a production system you owned end to end — requirements, architecture, data model, scaling, consistency trade-offs, failure modes, and observability — and defend every decision under follow-up questions.

    System Designsystem-designdistributed-systemskafkaownership
  • Data Structure DesignHardModel answer
    Building Map and Filter from a Reduce Foundation

    Implement a reduce operation, then express map and filter purely in terms of that reducer without independent iteration.

    Data Structure Designhigher-order-functionsfunctional-programmingdata-structures
  • BehavioralHardModel answer
    Lead Cross-Team Delivery and Navigate Ambiguity

    Demonstrate ownership, cross-functional collaboration, and self-awareness through structured answers to delivery, communication, and motivation prompts.

    Behavioralcross-team collaborationproject ownershipstakeholder communicationrisk management
  • System DesignMediumModel answer
    Design a Cost-Reduction Gateway for Metered Upstream APIs

    Design a shared proxy that sits between internal microservices and pay-per-call APIs, cutting spend through caching, request collapsing, batching, and budget enforcement.

    System Designcachingrate-limitingmicroservicesapi-gateway
  • Machine LearningMediumModel answer
    Critique a Vision-Based Infrastructure Failure Prediction System

    Identify the data, modeling, optimization, and deployment flaws in a proposal to train a CNN on public images to predict structural failures and generate safe designs.

    Machine Learningcomputer-visionmodel-evaluationadversarial-mlsystem-design
  • BehavioralHardModel answer
    Walk a Mixed Audience Through a Modeling Project

    Structure a 10–15 minute stakeholder presentation of a past ML project, covering business framing, metrics, trade-offs, risks, results, and impact — then defend it under cross-functional Q&A.

    Behavioralcommunicationstakeholder managementmodel deploymentbusiness impact
  • Machine LearningHardModel answer
    Walk Through a Production ML System You Built

    Describe one model you deployed in detail: formulation, features, training decisions, production issues, evaluation, and monitoring.

    Machine Learningmodel-developmentproduction-mlfeature-engineeringevaluation
  • Machine LearningHardModel answer
    Taming a High-Variance Regressor Under a Latency Budget

    Diagnose a severe train/validation RMSE gap on tabular data, then select, prioritize, and experimentally validate three overfitting interventions without exceeding a 20 ms inference limit.

    Machine Learningregularizationoverfittinggradient-boostingfeature-engineering
  • System DesignHardModel answer
    Live Market Data Distribution Platform

    Build a streaming architecture to deliver current stock quotes to millions of users with sub-second latency and graceful degradation under load.

    System Designreal-time systemsstreamingpub-subwebsockets
  • Statistics & ExperimentsMediumModel answer
    Diagnosing and Reducing Temperature Complaints in Food Delivery

    Identify why meals arrive at suboptimal temperatures, design metrics to quantify the issue, and structure a controlled test to validate a solution.

    Statistics & Experimentsexperimentationmetricscausal-inferenceA/B-testing
  • Data Structure DesignMediumModel answer
    Build a Dropping Tile Game with Win Detection

    Implement game logic for a gravity-based two-player board game: handle piece placement, detect wins efficiently, and analyze complexity.

    Data Structure Designgame-logic2d-gridstate-machine
  • System DesignMediumModel answer
    Ad serving platform with experiment assignment and tracking

    Build a system that delivers targeted ads with low latency, tracks engagement events, and supports deterministic A/B test assignment and analysis.

    System Designad-techexperimentationhigh-throughputcaching
  • BehavioralMediumModel answer
    Walk Me Through Yourself and a Project You Owned

    Structure a sharp personal introduction and a concrete project deep-dive that shows ownership, technical depth, and measurable impact.

    Behavioralcommunicationproject narrativeownershipimpact
  • Machine LearningMediumModel answer
    Automated Ticket Routing for Multi-Team Engineering Organizations

    Build an ML system that assigns incoming support tickets to the right engineering team, handling thousands of teams and high throughput.

    Machine Learningclassificationnlpproduction-mlretrieval
  • Machine LearningMediumModel answer
    RAG Service for Cited Q&A Over Long Regulatory Filings

    Design a retrieval-augmented assistant that answers multi-document questions over long regulatory filings with paragraph-level citations, streaming, and hallucination guards.

    Machine Learningragretrievalcitationsagentic-orchestration
  • System DesignMediumModel answer
    Password-Protected Encrypted Key-Value Store

    Design a user-authenticated key-value store where values are encrypted at rest using the user's password, covering key derivation, storage layout, and cryptographic trade-offs.

    System Designcryptographyauthenticationkey-management
  • System DesignMediumModel answer
    Three-Thread Ordered Printer with Condition Variables

    Coordinate three threads with a shared lock and condition variable so they emit the interleaved sequence 0,1,0,2,0,3,… up to n.

    System Designconcurrencysynchronizationcondition-variablesmultithreading
  • SQL & DataEasyModel answer
    Aggregate ZIP-Level Population Data with SQL Joins

    Write a SQL query to compute total city population by summing ZIP code records, handling joins and duplicate city names across regions.

    SQL & Datasqljoinsaggregationgroup-by