KatInterview

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

Interview Practice Problems

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

6081
Problems
2255
Auto-graded
15
Topics
272
Added today

Showing 4051–4080 of 6081 results

  • Arrays & HashingEasyAuto-graded
    Probability Inventory Covers Random Demand

    Compute the binomial CDF: the chance that at most s of n independent customers request a limited item.

    Arrays & Hashingprobabilitybinomial-distributioncombinatoricscdf
  • Arrays & HashingMediumAuto-graded
    Identify Customers With Unmet Service Needs

    Tests spatial hashing and set union logic to find customers whose required service tags are not collectively offered by any nearby vendor within a radius.

    Arrays & Hashingspatial-hashingset-operationsgrid-bucketing
  • System DesignMediumModel answer
    Taming Flaky Regressions and Sharpening Failure Classification

    Design an acceptance strategy for non-deterministic test output, then build a classification scheme that goes beyond pass/fail to drive precise triage.

    System DesignQAregression testingtest reliabilitydefect triage
  • Data Structure DesignMediumModel answer
    Model a Prepaid Spending Account with Transaction Limits

    Design a class hierarchy that tracks a spending cap, running balance, and transaction history while safely handling concurrent charges and edge-case inputs.

    Data Structure Designobject-oriented designconcurrencystate managementPython
  • System DesignEasyModel answer
    Design a Distributed Web Archiver with Untrusted Workers

    Design a fault-tolerant system that crawls and versions a large wiki using one coordinator, thousands of unreliable workers, and durable blob storage.

    System Designdistributed-systemscrawlingfault-tolerance
  • StringsMediumModel answer
    Rule-Driven CSV Validator with Cross-Field Word Overlap

    Design and implement a configurable validator that flags per-field rule violations and excessive word overlap across fields in a company CSV.

    Stringscsv-parsingvalidationstring-normalizationrule-engine
  • Statistics & ExperimentsHardModel answer
    Design an Experiment for a Commerce Recommendation Feature

    Design a full evaluation plan for a new recommendation module: define metrics, pick a test design, govern the ramp, and debug a conflicting mid-test signal.

    Statistics & Experimentsexperimentationcausal-inferencemetric-designCUPED
  • System DesignHardModel answer
    Design a Short-Term Rental Platform at Scale

    Design the backend for a global property rental marketplace handling millions of listings, concurrent bookings, and sub-200ms search with zero overbooking.

    System Designdistributed-systemsconcurrencygeo-searchdatabases
  • BehavioralMediumModel answer
    Reading C++: Linked List Bug and Polymorphic Dispatch Tracing

    Find the bug in a linked list insertion function and predict the output of a C++ program involving virtual functions, constructors, and slicing.

    Behavioralc++code-readingpointerspolymorphism
  • Trees & GraphsMediumModel answer
    Propagating Allow/Deny Permissions Through an Inheritance DAG

    Given a DAG where each node carries allow and deny lists, compute every node's effective permissions by inheriting and merging rules along edges in topological order.

    Trees & Graphsgraphstopological-sortpermissionsDAG
  • Trees & GraphsMediumModel answer
    Rebuild a Binary Tree from Pre- and In-Order Sequences

    Given preorder and inorder traversal arrays of a binary tree with unique values, reconstruct the tree in O(n) time and O(n) space.

    Trees & Graphsbinary-treerecursionhash-maptraversal
  • System DesignMediumModel answer
    Resource Lifecycle and Isolation in Multi-Tenant Allocation

    Design entities, state machine, and concurrency control for a resource allocator where tenants share infrastructure but remain strictly isolated.

    System Designconcurrencymulti-tenancystate-machine
  • Statistics & ExperimentsMediumModel answer
    Diagnosing Conflicting Signals in a Wait-Time Display Rollout

    A ride-platform changes how it shows wait times, conversion drops and observed pickup time falls — determine whether fleet efficiency actually improved.

    Statistics & Experimentsexperimentationselection-biasmetricscausal-inference
  • Math & Bit ManipulationMediumModel answer
    Four Labeled Boxes, Only One Label Tells the Truth

    Use a complementary pair of quantified statements to pin down which label is false, then read off the forced conclusion.

    Math & Bit Manipulationlogicpropositional-reasoningquantifiersconstraint-satisfaction
  • Machine LearningHardModel answer
    Fix Bugs in a Transformer and Build a KV Cache from Scratch

    Systematically locate and repair common implementation errors in a decoder-only Transformer, then add per-layer key-value caching to make autoregressive generation efficient.

    Machine Learningtransformersattentionkv-cachedebugging
  • BehavioralEasyModel answer
    Articulate Your Path into Quality Engineering

    Demonstrate that your interest in QA is deliberate and technically grounded by connecting your background, current study, and career goals into one coherent story.

    Behavioralcareer-goalsQAmotivationtechnical-screen
  • Machine LearningHardModel answer
    Build a Product Taxonomy Classifier Across Inconsistent Labels

    Design a production ML system that assigns products to a noisy, multi-path category tree with consistent predictions, calibrated confidence, and sub-100ms latency.

    Machine Learninghierarchical classificationmulti-labeltaxonomyloss functions
  • Heaps, Sorting & SearchMediumAuto-graded
    K-th Value in a Row-and-Column Sorted Grid

    Tests binary search on value space combined with an O(n) staircase count to efficiently locate the k-th smallest element in a doubly sorted matrix.

    Heaps, Sorting & Searchbinary-searchmatrixheap
  • Data Structure DesignMediumModel answer
    Fix a Broken Round-Robin Load Balancer

    Debug and repair a round-robin router that mis-assigns requests when servers are added, removed, or marked unhealthy, then write tests covering the edge cases.

    Data Structure Designround-robinload-balancingdebuggingconcurrency
  • Statistics & ExperimentsEasyModel answer
    Diagnose a positive test for a rare condition

    Use Bayes' theorem to find the probability a patient truly has a rare disease given a positive screening test result.

    Statistics & Experimentsconditional probabilityBayes theoremstatistics
  • BehavioralMediumModel answer
    Walk Me Through Your Most Impactful Work

    Describe a significant professional achievement using measurable baselines, clear ownership, sustained outcomes, and an honest causal argument for your contribution.

    Behavioralimpact measurementSTAR methodleadershipquantitative outcomes
  • BehavioralMediumModel answer
    Proactive Disclosure and Background Checks During a Job Search

    Decide what to tell a recruiter about a recent departure, understand how employment verification works, and communicate gaps or performance plans professionally.

    Behavioraltransparencybackground-checkscommunicationprofessionalism
  • Data Structure DesignMediumAuto-graded
    Simulate a Bounded Cache That Forgets the Least-Used Entry

    Tests O(1) design of a fixed-size recency-ordered cache: correct eviction order, recency refresh on reads and writes, and update-without-evict semantics.

    Data Structure Designhash-maplinked-listcachedesign
  • Machine LearningMediumModel answer
    Why Did Our Model Get Worse After Launch?

    Explain the gap between offline validation and live model performance to a non-technical PM, covering causes, a diagnostic plan, and mitigations with trade-offs.

    Machine Learningmodel degradationdata driftproduction MLstakeholder communication
  • Statistics & ExperimentsMediumModel answer
    Metrics Framework for a Budgeting Feature Launch Decision

    Design a metric-driven launch decision for an A/B-tested budgeting feature, interpreting segmented T/C results and recommending next steps.

    Statistics & ExperimentsexperimentationmetricssegmentationA/B testing
  • Machine LearningHardModel answer
    Build an N-Gram Language Model: Smoothing, Generation, and Tuning N

    Implement a trainable n-gram language model with smoothing and sampling, then reason through how to pick the right n for your data.

    Machine Learningnlplanguage-modelsmoothingperplexity
  • BehavioralMediumModel answer
    Map Your Professional Growth Over the Next Two to Three Years

    Articulate a concrete, evidence-backed direction for how your skills, scope, and problem ownership should evolve, and show how this role fits that path.

    Behavioralcareer growthself-awarenesslearning plan
  • Machine LearningHardModel answer
    End-to-End GenAI System Design: Architecture Deep-Dive

    Design and defend a complete GenAI system from data ingestion to production serving, covering model choice, evaluation, safety, and a scaling plan under hard latency and cost constraints.

    Machine LearningLLMRAGfine-tuningserving
  • Data Structure DesignMediumAuto-graded
    Order State Machine with Transition Validation

    Tests finite state machine implementation with strict transition rules and rejection of invalid state changes.

    Data Structure Designstate-machinevalidationdata-structures
  • BehavioralMediumModel answer
    Cascading a Mandatory Initiative Across Three Audiences

    Plan and tailor your communication strategy when rolling out a VP-mandated operational change to peers, your own managers, and front-line workers.

    Behavioralchange managementleadershipcommunicationinfluence