KatInterview

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

Interview Practice Problems

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

6041
Problems
2237
Auto-graded
15
Topics
275
Added today

Showing 2551–2580 of 3804 results

  • 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
  • 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
  • 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
  • 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
  • Statistics & ExperimentsHardModel answer
    Diagnose a Usage Drop and Design a Subscription Trial

    Decompose a 10% monthly decline in ride activity, identify root causes, and design and evaluate a free-trial subscription experiment end to end.

    Statistics & Experimentsproduct analyticsexperimentationfunnel analysiscohort retention
  • System DesignHardModel answer
    Build a Game-Agnostic Two-Player Match Runner

    Design a modular Python framework that can run any two-player turn-based game by swapping rule and agent implementations without touching the core loop.

    System Designobject-oriented designstrategy patternextensibilitypython
  • System DesignHardModel answer
    Build a Multi-GPU Test Harness in Python

    Design and implement a pytest-style test harness that runs graphics validation tests in parallel across multiple GPUs, handling fixtures, retries, and process isolation.

    System Designpythontestingconcurrencyasyncio
  • System DesignMediumModel answer
    Chatbot ROI Case: Value for the Bank vs. Value for Customers

    Make the case for (and against) a customer-facing bank chatbot, tying each benefit to a mechanism and metric and each risk to a mitigation.

    System Designproduct-designcase-studychatbotfintech
  • Statistics & ExperimentsHardModel answer
    Measuring Impact of a Spam Filter on Friend Request Acceptance

    Design an A/B test to measure how a tighter spam filter affects 24-hour friend-request acceptance, including randomization, metrics, power, and missing labels.

    Statistics & Experimentsexperimentationcausal-inferencea-b-testingmetrics
  • BehavioralMediumModel answer
    Build a Coherent PM Career Narrative for a Consumer Tech Role

    Structure a compelling self-introduction, ownership walkthrough, and motivation story that connects your background to a consumer content or platform PM role.

    Behavioralcareer-storyself-introductionproduct-sensemotivation