KatInterview

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

Interview Practice Problems

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

5987
Problems
2219
Auto-graded
15
Topics
270
Added today

Showing 361–390 of 3768 results

  • Machine LearningHardModel answer
    Predicting Late Arrivals: Leakage-Safe Flight Delay Modeling

    Design a leakage-safe pipeline that predicts 15+ minute late arrivals from pre-departure data: audits, time-based validation, models, explanations, stress tests, and an A/B plan.

    Machine Learningdata-leakagetime-series-validationlightgbmcalibration
  • System DesignHardModel answer
    Building a Future-Dated Payment Scheduler with Safe Cancellation

    Design a service that stores payments for later execution, lets users check or cancel them while pending, and guarantees no duplicate charges despite retries, crashes and time-zone quirks.

    System Designsystem-designschedulingidempotencydistributed-systems
  • Statistics & ExperimentsMediumModel answer
    Measuring Misinformation Prevalence on a Social Feed with Confidence Intervals

    Design a sampling plan to estimate how much of a social feed is misinformation, with confidence intervals, and choose engagement metrics that capture its real effect on users.

    Statistics & Experimentssamplingstratified-samplingconfidence-intervalsprevalence-estimation
  • System DesignHardModel answer
    Designing a Copy-Match Service for a Billion-Video Catalog

    Design a pipeline that flags re-uploaded or lightly altered videos against a billion-item catalog within 500 ms at 10k uploads per second, balancing precision and recall.

    System Designsystem-designvector-searchannembeddings
  • StringsMediumModel answer
    Verify Validity of Piece Movement on a 1D Board

    Determine whether an initial 1D board configuration can reach a target configuration based on specific movement and jump rules.

    Stringsstringstwo-pointersinvariants
  • Stacks & QueuesMediumModel answer
    Build a Calculator with Variables, Unary Signs and Parentheses

    Write a linear-time evaluator for integer expressions with variables, precedence, unary signs, parentheses, truncating division and 64-bit error handling.

    Stacks & Queuesparsingrecursive-descentexpression-evaluationtokenization
  • Statistics & ExperimentsMediumModel answer
    Auditing a Dwell-Time Linear Regression Pipeline

    Review a colleague's OLS workflow for predicting session dwell time from four predictors, and explain what is wrong, what you would ask, and how you would rebuild it.

    Statistics & Experimentslinear-regressionmodel-selectionoverfittingols-assumptions
  • BehavioralMediumModel answer
    Present a Project You Led: Scope, Plan, Team, and Results

    Build and defend a short slide-based walkthrough of a project you owned, covering scoping, planning, delegation, trade-offs, results, and reflection, and be ready for follow-up probing.

    Behavioralproject-deep-diveleadershipestimationdelegation
  • Statistics & ExperimentsHardModel answer
    Evaluating Promo Lift and Designing Two-Sided Marketplace Experiments

    Address observational bias in promotion data and design a robust experiment to measure true incremental booking value within a two-sided platform.

    Statistics & ExperimentsA/B TestingCausal InferenceMarketplace InterferenceExperimentation
  • Statistics & ExperimentsHardModel answer
    Rolling Out a Homepage Ranker Upgrade in a Delivery Marketplace

    Plan a safe, statistically sound experiment and rollout for a new homepage store ranker in a two-sided delivery marketplace, covering metrics, interference, infrastructure, power and launch rules.

    Statistics & Experimentsab-testinginterferenceswitchbackcuped
  • Machine LearningMediumModel answer
    Generalization Gaps and Weight Penalties: A Short ML Primer

    Describe how to recognize a model that memorizes its training data, list ways to curb it, and contrast absolute-value and squared-weight penalties on a model's coefficients.

    Machine Learningoverfittingregularizationbias-variancegeneralization
  • StringsMediumModel answer
    JavaScript Strict vs Loose Equality: Coercion Rules and Pitfalls

    Explain how JavaScript's two equality operators work, how implicit type coercion drives loose equality, where results diverge, and which operator to prefer.

    Stringsjavascripttype-coercionequalitylanguage-fundamentals
  • System DesignMediumModel answer
    Design a Low-Latency Distributed Rate Limiting System

    Architect a high-performance, multi-tenant rate limiter capable of enforcing global traffic quotas across millions of requests per second with sub-5ms response times.

    System Designrate-limitingdistributed-systemscachingscalability
  • System DesignHardModel answer
    Scheduling Platform for Long-Running Multi-GPU Render Jobs

    Design a fault-tolerant, multi-tenant scheduler that places long, opaque, gang-scheduled GPU jobs on a 10,000-GPU fleet while keeping utilization high and recovering from node failures.

    System Designjob-schedulinggpu-clusterfair-sharegang-scheduling
  • Statistics & ExperimentsHardModel answer
    Switchback Test Design for Reducing Cold Deliveries by Bike

    Design and analyze a two-week, city-level switchback test of a courier feature: slot length, randomization, ITT versus exposure, clustered regression, power, diagnostics and stopping rules.

    Statistics & Experimentsswitchbackexperiment-designcluster-robust-sepower-analysis
  • Trees & GraphsMediumModel answer
    Resolve Variables from Linked Assignment Rules with Cycle Checks

    Evaluate a target variable from a list of assignment strings, growing from simple aliasing to signed sums of variables and integers, then detect circular dependencies safely.

    Trees & Graphsparsingmemoizationdfscycle-detection
  • Data Structure DesignMediumModel answer
    Design a Concurrent Fixed-Size Thread Pool with Task Futures

    Design and implement a fixed-size thread pool with safe task queueing, future result retrieval, exception handling, and graceful or forced shutdown mechanism using basic locks and condition variables.

    Data Structure Designconcurrencythread-pooldesignmultithreading
  • System DesignMediumModel answer
    Build a Reliable Cron-as-a-Service Platform

    Design a cloud service that lets clients register recurring or one-off tasks, runs them on a worker fleet without skipping any run, enforces timeouts, and exposes run status and logs.

    System Designsystem-designjob-schedulerdistributed-systemsfault-tolerance
  • System DesignMediumModel answer
    Build a Shopping Cart Backend for Meal Ordering

    Design a scalable, highly available cart service for a meal-ordering app, covering APIs, storage, price drift handling, concurrent edits across devices, and consistency trade-offs.

    System Designsystem-designcart-serviceconsistencyidempotency
  • Machine LearningHardModel answer
    Design a Real-Time Fraud Prevention Platform

    Architect a scalable, low-latency system to score payment transactions for fraud under severe class imbalance and delayed feedback loops.

    Machine Learningsystem-designmachine-learningfraud-detectionfeature-store
  • Statistics & ExperimentsHardModel answer
    Valid Early Stopping: Interim Looks, Always-Valid Tests, Many Metrics

    Design an A/B test that can be stopped early for a win or for futility without inflating false positives, covering fixed-look boundaries, always-valid methods and multiple metrics.

    Statistics & Experimentssequential-testingalpha-spendingmsprte-values
  • System DesignMediumModel answer
    Browser-Only Streaming Chat App with a Stateless Relay

    Design a streaming AI chat product where conversation content lives only in the browser, a stateless relay protects provider keys, and refresh begins a fresh chat.

    System Designsystem-designstreamingsseoauth-pkce
  • Data Structure DesignMediumModel answer
    Build a Quiet-Period Call Delayer in JavaScript

    Write a higher-order function that postpones a callback until calls have stopped for a given time, preserving this and arguments, and discuss cancel, flush and leading-edge variants.

    Data Structure Designjavascriptclosurestimersdebounce
  • System DesignMediumModel answer
    Real-Time Direct Messaging Plus Dormant-Customer Email Campaign

    Design a WebSocket-based one-to-one messaging service with presence and history, plus a scheduled pipeline that emails customers who have been dormant for ten days.

    System Designwebsocketmessage-routingpresencepub-sub
  • System DesignHardModel answer
    Taming a Compiler on a Wide-Issue VLIW Target

    Explain how to steer or override a compiler's scheduling on a VLIW-style core, and how to verify the result is both correct and faster without relying on undefined behavior.

    System Designcompiler-optimizationvliwperformance-engineeringsoftware-pipelining
  • Math & Bit ManipulationEasyModel answer
    Three Cat Owners and a Truth-or-Lie Rule: Find Bob's Count

    Three friends speak under a rule that ties honesty to who owns more cats. Use the statements, parity, divisibility and a sum bound to find Bob's cat count and the triple of counts.

    Math & Bit Manipulationlogic-puzzlecase-analysisdivisibilityparity
  • BehavioralMediumModel answer
    Why This Team? Crafting a Targeted Motivation Answer

    Practice answering a tiebreaker behavioral question: explain, with specifics, why you want to work on one engineering team's problems and what you would bring and gain.

    Behavioralbehavioralmotivationteam-fitcommunication
  • System DesignHardModel answer
    Scheduler Design Where Each Run Starts At Most Once

    Design a distributed job scheduler for one-time and recurring jobs where a scheduled run must never start twice, covering crash ambiguity, deadlines, logs, cancellation and notifications.

    System Designsystem-designdistributed-schedulerat-most-onceleases
  • Statistics & ExperimentsMediumModel answer
    Four Stats Coding Tasks: Sample Size, DiD, Bayes, Logit

    Implement four small statistics routines: z-test sample size, difference-in-differences with a pre-trend check, a Bayes posterior, and top-3 features by logistic regression coefficient.

    Statistics & Experimentssample-sizedifference-in-differencesbayes-rulelogistic-regression
  • BehavioralMediumModel answer
    Prove You Can Hit the Ground Running in an Ad Tech Role

    Plan how to show a hiring manager that your past ad-platform work covers most of a job description, with honest gap handling and well-structured stories.

    Behavioralbehavioralads-engineeringstar-methodhiring-manager