KatInterview

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

Interview Practice Problems

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

6027
Problems
2232
Auto-graded
15
Topics
272
Added today

Showing 2761–2790 of 3795 results

  • Statistics & ExperimentsHardModel answer
    Design a profit comparison study for two competing retail locations

    Plan data collection, analysis, and decision framework to reliably determine which of two side-by-side shops will be more profitable next quarter.

    Statistics & Experimentscausal-inferenceexperimental-designmetricsconfidence-intervals
  • Machine LearningMediumModel answer
    Write a PyTorch Training Loop from Scratch

    Implement a complete per-batch training loop in PyTorch, covering device placement, gradient management, and per-epoch loss tracking.

    Machine Learningpytorchdeep-learningtraining-loopgradient-descent
  • BehavioralEasyModel answer
    Navigating a Complex Technical Investigation

    Walk through how you approached an ambiguous technical problem, the evidence you gathered, and how you drove it to resolution.

    Behavioralproblem-solvingcommunicationleadership
  • Machine LearningMediumModel answer
    Temperature Data: Stats, Regression, and Greedy Feature Selection

    Given daily temperature readings for NYC and several towns, compute variability stats, fit linear regressions, and select five predictors via greedy forward search.

    Machine Learningpandasnumpylinear-regressionfeature-selection
  • System DesignMediumModel answer
    Hotel Booking Platform: Fast Search, Oversell-Free Reservations

    Design a hotel search and reservation system that serves low-latency search from caches while guaranteeing strict, oversell-free transactional booking across multi-night stays.

    System Designsystem-designconsistencyidempotencycqrs
  • Dynamic ProgrammingMediumModel answer
    Maximum Valid-Partition Block Count for Every Prefix

    For each prefix of a string, find the maximum number of contiguous blocks it can be split into where every character in a block shares the same frequency.

    Dynamic Programmingdynamic programmingstringsfrequency countingprefix processing
  • BehavioralMediumModel answer
    Walk Me Through a Technical Project You Owned End-to-End

    Articulate a technical project through the lens of your individual decisions, the trade-offs you weighed, and the measurable impact you delivered.

    Behavioralbehavioralownershipcommunicationtrade-offs
  • System DesignHardModel answer
    Design a High-Traffic Event Seat Reservation Platform

    Design a seat reservation system for sold-out events that handles millions of concurrent users without overselling, covering holds, payments, and real-time availability.

    System Designdistributed-systemsconcurrencypaymentscaching
  • Statistics & ExperimentsMediumModel answer
    Designing and Measuring a Cyclist Courier Program Launch

    End-to-end product analytics case: define objectives, operationalize, design a geo-experiment, select KPIs with guardrails, and diagnose a null result for a new cyclist delivery mode.

    Statistics & Experimentsexperiment designmetric designmarketplacegeo-experiments
  • System DesignMediumModel answer
    Scalable Multi-Dimensional Throttling for an Inference API

    Architect a distributed throttle service for an LLM API that enforces per-org request and token limits with sub-5ms latency at 200k RPS.

    System Designrate-limitingredisdistributed-systemshigh-throughput
  • SQL & DataMediumModel answer
    Payment Risk Scoring with Rolling Windows and NULL Handling in SQL

    Analyze a payments table to rank users by declined volume, flag burst activity in 24-hour windows, and classify each transaction by amount using conditional logic.

    SQL & Datawindow-functionsaggregationcase-whennull-handling
  • System DesignHardModel answer
    Design a High-Throughput Product Catalog Sync Pipeline

    Architect an async ingestion system that handles billion-scale bulk feed files and real-time single-item edits, prioritizing price/stock updates over heavy image processing.

    System Designdistributed-systemsmessage-queuesdata-pipelines
  • Greedy & IntervalsHardModel answer
    Equalize Array Range with Bounded Transfers

    Find the minimum operations to narrow an array's range below a threshold by transferring bounded amounts between pairs of elements.

    Greedy & Intervalsgreedybinary-searchmathoptimization
  • System DesignMediumModel answer
    Spring Boot REST API: Controller Design with DTOs and Validation

    Build a Spring Boot controller for a banking resource with proper HTTP semantics, request validation, error handling, and tests.

    System Designspring-bootrest-apivalidationerror-handling
  • BehavioralMediumModel answer
    Deep Project Leadership and Cross-Functional Execution

    Describe a complex project covering technical decisions, organizational alignment, stakeholder collaboration, conflict resolution, and measurable outcomes.

    Behavioralleadershipcollaborationdecision-making
  • Statistics & ExperimentsMediumModel answer
    Is This Playlist Shuffle Actually Fair?

    Determine whether a naive shuffle that always picks from the full array produces a uniform distribution, and explain why or why not using probability theory.

    Statistics & Experimentsprobabilityshufflealgorithm-analysisrandom-number-generation
  • BehavioralEasyModel answer
    Why Infrastructure? Connecting Your Background to Large-Scale AI Systems

    Articulate a compelling, specific case for why you want to build infrastructure for AI systems and how your past work positions you to contribute.

    Behavioralmotivationself-awarenessinfrastructurecareer narrative
  • Data Structure DesignMediumModel answer
    Build an Edit History System with Batching

    Implement a command history mechanism supporting single edits, grouped operations, and bidirectional traversal through past states.

    Data Structure Designundo-redocommand-patternstate-management
  • Data Structure DesignMediumModel answer
    Build a Scoped Owner and a Resizable Container from Scratch

    Implement a move-only smart pointer and a generic dynamic array in C++, exercising RAII, the Rule of Five, placement new, and exception-safe resizing.

    Data Structure Designc++memory-managementraiimove-semantics
  • Machine LearningHardModel answer
    Build a Click Prediction System for Job Recommendations

    Design an ML system that predicts job click probability using member profiles, job attributes, and behavior logs to power ranking at serving time.

    Machine Learningml-system-designrankingembeddingsdata-leakage
  • BehavioralMediumModel answer
    SRE Ownership: Balancing Velocity vs. Reliability and a Defining Project

    Demonstrate how you navigate the tension between shipping features and maintaining system health, then walk through a high-impact project with concrete metrics and personal ownership.

    BehavioralSREreliabilityownershipstakeholder communication
  • BehavioralMediumModel answer
    Navigating Cross-Team Friction and Learning from a Project That Missed

    Demonstrate how you align competing teams around shared goals, own your role in a project failure, and turn specific lessons into changed behavior.

    Behavioralcollaborationfailureownershipleadership
  • System DesignMediumModel answer
    Prevent Deadlock in Multi-Lock File Transfer

    Diagnose a deadlock in code that moves items between locked containers and implement fixes using lock ordering or try-lock strategies.

    System Designconcurrencydeadlocklockingmultithreading
  • BehavioralMediumModel answer
    Navigating a Technical Project with Unclear Requirements

    Describe how you structured and delivered a technical initiative when the problem definition, scope, or acceptance criteria were incomplete or evolving.

    Behavioralleadershipambiguitystakeholder-management
  • BehavioralMediumModel answer
    When You and a Colleague Saw the Right Path Differently

    Walk through a real professional disagreement over a meaningful tradeoff, showing how you raised concerns, kept the relationship, and protected the outcome.

    Behavioralconflict resolutiondisagree and commitvalues tradeoffscross-functional collaboration
  • Statistics & ExperimentsMediumModel answer
    Measuring the Real Value of an AI Creative Assistant for Advertisers

    Design a rigorous evaluation framework to determine whether an AI-powered ad creative tool creates genuine advertiser value or just shifts behavior around existing tools.

    Statistics & Experimentsexperimentationproduct-metricscausal-inferenceA/B-testing
  • Statistics & ExperimentsMediumModel answer
    Rank of BA When AB Has Rank 2 in a 4×4 Setting

    Given two 4×4 real matrices with rank(AB) = 2, find every integer value rank(BA) can take and construct matrices achieving each extreme.

    Statistics & Experimentslinear-algebrarankmatrix-products
  • Machine LearningHardModel answer
    Build a RAG-Powered Voice Assistant with Grounding Guarantees

    Design a retrieval-augmented voice assistant that answers from a trusted knowledge base under a 500ms latency budget while minimizing hallucinations.

    Machine LearningRAGLLMsystem-designvoice
  • System DesignMediumModel answer
    Event Ingestion Pipeline with Semi-Structured Payloads

    Design a fault-tolerant pipeline that ingests 50k heterogeneous JSON events per second and serves both per-user lookups and 90-day aggregate analytics.

    System Designdata-pipelineskafkaanalyticsschema-evolution
  • BehavioralMediumModel answer
    Describing Your Role: Scope, Ownership and Impact

    Explain your current position, responsibilities, and contributions in a way that demonstrates senior-level ownership and sets up productive follow-up discussion.

    Behavioralbehavioralleadershipcommunication