KatInterview

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

Interview Practice Problems

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

6110
Problems
2262
Auto-graded
15
Topics
273
Added today

Showing 2431–2460 of 6110 results

  • Statistics & ExperimentsMediumModel answer
    Is a Second Season Worth Its Production Budget?

    Estimate the incremental revenue from greenlighting a second season using retention odds with and without the show, find the break-even audience, and critique the key assumptions.

    Statistics & Experimentsexpected-valueincremental-analysisbreak-evenretention
  • BehavioralEasyModel answer
    Present a Data Science Project From Problem to Impact

    Give a structured, concrete account of one data science project you led, covering framing, metrics, data, method, validation, risks, results, and next steps.

    Behavioralbehavioraldata-scienceproject-walkthroughmetrics
  • Trees & GraphsMediumAuto-graded
    Best Net Reward Route to an Underscore Node in a DAG

    Find the highest net score of a route in a weighted DAG that ends at a node whose name starts with an underscore, using topological order and DP.

    Trees & Graphsgraphdagtopological-sortdynamic-programming
  • Machine LearningMediumModel answer
    Model Fit, CNNs, RNNs, Transformers and Ensembles: ML Fundamentals

    A broad machine-learning fundamentals question covering model fit diagnostics, augmentation, CNNs, RNNs, transformer encoders, dropout and ensemble methods.

    Machine Learningoverfittingbias-variancecnntransformers
  • BehavioralMediumModel answer
    Nailing the Recruiter Intro Call for a Software Engineer Role

    Plan concise, credible answers to seven common recruiter-screen questions, from your background and stack to motivation, stress, remote work and interest in an industry domain.

    Behavioralrecruiter-screenbehavioralcommunicationstar-method
  • System DesignMediumModel answer
    Building a Concurrent Rendering Pipeline for Placeholder Substitution

    Design a horizontally scalable backend that renders millions of placeholder-substitution jobs per hour using queues and worker pools, with fault tolerance, backpressure, and sensible job routing.

    System Designworker-poolproducer-consumermessage-queuebackpressure
  • Greedy & IntervalsMediumModel answer
    Matrix 90-Degree Clockwise Rotation and Maximum Interval Coverage

    Rotate a square grid 90 degrees clockwise and identify regions of maximal overlapping intervals using a sweep-line algorithm.

    Greedy & Intervalsarraysgreedy-intervalsheaps-sorting
  • Data Structure DesignMediumAuto-graded
    Identify Winning Move in Bottom-Inserted Drop Game

    Simulate a custom grid game with bottom-insertion pushes to detect the earliest turn that forms a line of length k.

    Data Structure Designarrayshash-tablesimulationdesign-ds
  • Arrays & HashingEasyAuto-graded
    Reverse Array Segment Between First Two Target Occurrences

    Reverse the subsegment of an array from the first occurrence of a target value up to its second occurrence.

    Arrays & Hashingarraystwo-pointersslicing
  • System DesignHardModel answer
    Building an Async Prompt-to-Clip Rendering Service on a GPU Fleet

    Design a durable, fair, and safe asynchronous service that turns text prompts into 10-second clips using slow, expensive GPU inference at roughly ten thousand requests per hour.

    System Designml-system-designgpu-schedulingjob-queuefault-tolerance
  • BehavioralMediumModel answer
    Data Science Leadership: Data Foundations, Conflicts, and Velocity

    Demonstrate data science leadership across technical foundation building, cross-functional conflict resolution, and managing speed versus precision trade-offs.

    BehavioralLeadershipData GovernanceStakeholder ManagementPrioritization
  • Statistics & ExperimentsHardModel answer
    Launching Peer Payments in a Chat App: Metrics, Tests, Risks

    Plan the first 90 days of a person-to-person payments feature in a chat product: pick goals and metrics, price it, run a network-safe experiment, fall back to DiD, and flag risks.

    Statistics & Experimentsexperiment-designnetwork-interferencedifference-in-differencesproduct-analytics
  • Math & Bit ManipulationEasyAuto-graded
    Calculate Expected Score from Multi-Stage Die Rerolls

    Computes the optimal decision threshold and overall expected payoff when given one optional reroll on an N-sided die.

    Math & Bit Manipulationmathprobabilityexpected-valuedynamic-programming
  • System DesignHardModel answer
    Batching Service for Autocomplete Inference with Fixed Batch Time

    Design a low-latency serving stack that groups autocomplete requests into fixed-duration accelerator batches, sizes the fleet, handles failures, and critiques the fixed-time premise.

    System Designsystem-designllm-servingbatchingcapacity-planning
  • Statistics & ExperimentsHardModel answer
    Fitting Simplex-Constrained Action Weights for a Usage Score

    Estimate non-negative, sum-to-one weights for four user actions predicting time spent, handle collinearity, quantify uncertainty, stabilize with priors, and tune Elastic Net by cross-validation.

    Statistics & Experimentsconstrained-regressionmulticollinearitybootstrapbayesian-priors
  • Math & Bit ManipulationEasyAuto-graded
    Determine Animal Quantities in a Barn

    Find the integer count of each animal species given the total legs and proportional species constraints.

    Math & Bit Manipulationmathalgebra
  • System DesignMediumModel answer
    Build a Scheduler and Runner Platform for Automated Test Suites

    Design a platform where teams declare automated tests, trigger or schedule them, run them on shared compute, and query status, logs, artifacts and history reliably at scale.

    System Designsystem-designdistributed-systemsschedulingci-cd
  • Data Structure DesignMediumModel answer
    Thread-Safe Recurring Task Engine

    Design and implement a concurrent background scheduler that manages recurring execution intervals, supports execution cancellation, and handles thread-safe termination.

    Data Structure Designconcurrencyheapsthreadsdesign
  • Stacks & QueuesMediumAuto-graded
    Rounds of Pruning in a Garden Row

    Count how many rounds of simultaneous removals occur in a row of numbers where each element larger than its left neighbor is removed, using a monotonic stack to beat quadratic simulation.

    Stacks & Queuesmonotonic-stacksimulationarraysamortized-analysis
  • Math & Bit ManipulationMediumAuto-graded
    Maximize Disjoint Letter Coverage

    Find the maximum count of distinct letters that can be collected by picking a mutually disjoint subset of strings.

    Math & Bit Manipulationbit-manipulationbacktrackingdynamic-programmingstrings
  • System DesignMediumModel answer
    Design an Enterprise AI Gateway for Heterogeneous Models

    Design a high-throughput, multi-tenant AI proxy layer featuring unified OpenAI-compatible routing, token-aware rate limiting, low latency overhead, and PII masking.

    System Designsystem-designai-gatewayllm-infrastructurerate-limiting
  • Trees & GraphsMediumAuto-graded
    Common Ancestor of Two Values, Only If Both Exist

    Find the lowest common ancestor of two values in a level-order encoded binary tree, returning null when either value is missing from the tree.

    Trees & Graphsbinary-treelowest-common-ancestorparent-mapbfs
  • Trees & GraphsMediumAuto-graded
    Maximum Subtree Weight for Every Node in a Network

    Find the maximum sum of a connected component containing each node in an undirected tree using dynamic programming with rerooting.

    Trees & Graphstrees-graphsdynamic-programmingtree-dprerooting-dp
  • Math & Bit ManipulationHardModel answer
    Numbers with Double Sum-of-Squares Decompositions

    Count unique pairs of non-negative integers whose squares sum to a target value, identifying numbers with exactly two representations up to a limit N.

    Math & Bit Manipulationmath-bitsarraysmath
  • Machine LearningHardModel answer
    Architecting an End-to-End Causal Machine Learning System

    Design a production-grade causal pipeline detailing DAG specifications, doubly robust estimation, off-policy evaluation, sensitivity bounds, and constrained policy deployment.

    Machine Learningcausal-inferenceuplift-modelingdouble-robustoff-policy-evaluation
  • System DesignMediumModel answer
    Build a Fleet-Wide Log Search Platform at 100K Lines/Second

    Design a platform that collects logs from many microservices, keeps them for 30 days, and supports fast searches by service, time window, and text or regex pattern.

    System Designsystem-designlog-pipelinekafkaindexing
  • Arrays & HashingMediumAuto-graded
    Runners on a Road Frozen by a Sweeping Guard

    Simulate runners advancing along a road while a guard turns at given seconds and freezes anyone in view, using parity of duplicate turn times and strict event ordering.

    Arrays & Hashingsimulationhash-mapcountingparity
  • BehavioralMediumModel answer
    Presenting System Architecture and Proposing Process Improvements

    Learn how to present a technical project end-to-end and constructively discuss team process challenges and influence strategies during software engineering interviews.

    Behavioralbehavioralsystem-architectureleadershipcollaboration
  • Stacks & QueuesMediumAuto-graded
    Widest Span Between Two Dominating Ends

    Find the longest subarray whose two end values are each strictly larger than everything between them, using a monotonic stack to avoid checking all pairs.

    Stacks & Queuesmonotonic-stackarraysnearest-greateramortized-analysis
  • Statistics & ExperimentsHardModel answer
    Plant-Based Menu Investment: Business Case & Pilot Design

    Evaluate a $13M plant-based menu expansion using market sizing, incremental unit economics, cannibalization risks, real option staging, and pilot experimental design.

    Statistics & Experimentsexperimentationbusiness-caseunit-economicscausal-inference