KatInterview

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

Interview Practice Problems

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

6003
Problems
2223
Auto-graded
15
Topics
273
Added today

Showing 631–660 of 6003 results

  • Math & Bit ManipulationEasyAuto-graded
    Card Launch Unit Economics Report Builder

    Build a fixed unit-economics report for a card launch: portfolio P&L, partnership uplift, bonus payback time, and the zero-profit loss rate.

    Math & Bit Manipulationmathsimulationunit-economicsdictionaries
  • 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
  • Trees & GraphsMediumAuto-graded
    Unlock Order: Build a Dependency-Respecting Study Plan

    Produce a deterministic topological ordering of nodes from prerequisite pairs, or an empty list if a cycle makes it impossible. Tests graph modeling and Kahn's algorithm.

    Trees & Graphstopological-sortgraphbfscycle-detection
  • 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
  • Data Structure DesignHardAuto-graded
    Fault-Tolerant Task Dispatcher with Retry Limit and Dependencies

    Simulate a job queue where failed jobs retry up to a limit, then go to a dead-letter list, and failures cascade to jobs that depend on them.

    Data Structure Designsimulationqueuegraphstate-machine
  • 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
  • Arrays & HashingMediumAuto-graded
    Earliest-Completing Pair That Hits a Target Sum

    Find the pair of indices whose values sum to a target, choosing the pair that finishes earliest in the array, with deterministic duplicate handling, using a one-pass hash map.

    Arrays & Hashinghash-maptwo-sumduplicatesone-pass
  • 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
  • StringsMediumAuto-graded
    Filter Words Expandable to Target String

    Determine which words from a dictionary can yield a target string by expanding consecutive duplicate characters in place.

    Stringsstringstwo-pointersarrays
  • 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
  • Arrays & HashingEasyAuto-graded
    Mean Household Earnings with Gaps in the Data

    Compute the mean of a list of numbers while skipping None and NaN entries, returning 0.0 when nothing valid remains and rounding to two decimals.

    Arrays & Hashingarraysdata-cleaningnan-handlingaggregation
  • SQL & DataMediumAuto-graded
    Best-Scoring Enrollee for Each Academic Department

    Pick one top student per department from two record lists, using GPA with deterministic tie-breaks, skipping missing values, and keeping departments that have no eligible student.

    SQL & Datagroup-wise selectionleft jointie-breakingnull handling
  • 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
  • StringsMediumAuto-graded
    Bracket the Shortest Exclusive Fragment in Every Menu Entry

    Find, for each string, its shortest substring that occurs in no other string (case-insensitive), with leftmost tie-break, and wrap it in brackets while keeping original casing.

    Stringsstringshash-mapsubstringsbitmask
  • Math & Bit ManipulationEasyAuto-graded
    Calculate Bag Selection Probability via Bayes' Theorem

    Given selection priors and ball counts for several containers, calculate the posterior probability of drawing from a specific container after observing a target outcome.

    Math & Bit Manipulationmathprobabilitybayes-theoremarrays
  • 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
  • Trees & GraphsMediumAuto-graded
    Gather Unique Items Across a Linked Collection Graph

    Run a breadth-first traversal over a directed graph of folders, emitting each item once in first-seen order, while validating every reference and handling cycles.

    Trees & Graphsbfsgraphhash-setdeduplication
  • Arrays & HashingMediumAuto-graded
    Bucket Words That Share the Same Letters

    Partition a list of lowercase words into buckets of mutual rearrangements, using a canonical key and a hash map while keeping a deterministic output order.

    Arrays & Hashinghash-mapstringssortinggrouping
  • 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