KatInterview

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

Interview Practice Problems

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

6093
Problems
2258
Auto-graded
15
Topics
273
Added today

Showing 3811–3840 of 6093 results

  • System DesignHardModel answer
    Thread-Safe Tag Index and Online Bookstore Architecture

    Design a concurrent in-memory tagging system with correct multi-index atomicity, then architect a scalable bookstore handling high-read browsing and consistent purchases.

    System Designconcurrencyobject-oriented-designdistributed-systems
  • System DesignHardModel answer
    Investigating and Mitigating Production Latency Spikes

    Walk through triaging a production alert for elevated service latency, from confirming impact to investigating root causes and restoring service.

    System Designobservabilityincident-responseperformanceproduction
  • Statistics & ExperimentsMediumModel answer
    Investigating a Drop in New User Activation

    A key activation metric has fallen; walk through your diagnostic approach, data checks, hypotheses, and segmentation strategy.

    Statistics & Experimentsmetricsroot-cause-analysisexperimentation
  • Statistics & ExperimentsHardModel answer
    Evaluating a New Ad Ranking Algorithm End to End

    Design metrics, randomization and rollout for a new ad ranker, plus fallbacks when a clean 50/50 test is impossible.

    Statistics & Experimentsexperimentationcausal-inferencea-b-testingmarketplace-interference
  • Machine LearningHardModel answer
    Design a Personalized Food Delivery Home Feed Ranker

    Design an end-to-end ML system that ranks restaurants on a food delivery app's home screen to maximize orders and long-term user satisfaction.

    Machine Learningrecommendation systemsrankingtwo-towermulti-task learning
  • System DesignMediumModel answer
    Quota & Rate-Limit System for a Mobile AI App

    Design the client-server quota enforcement system for a mobile AI assistant, covering API contract, Android architecture, and multi-device synchronization.

    System Designrate-limitingandroidmobilereal-time
  • Arrays & HashingHardModel answer
    Fewest Swaps to Bring an Array with Duplicates into Sorted Order

    Given an integer array that may contain duplicates, find the minimum number of arbitrary index swaps needed to sort it in non-decreasing order.

    Arrays & Hashingsortingpermutationscycle-detectiongreedy
  • Math & Bit ManipulationMediumModel answer
    Bounded Robot Path Under Infinite Command Repeats

    Simulate one pass of a compressed command string, then decide whether infinitely repeating it keeps the robot inside a finite region, even with obstacles.

    Math & Bit Manipulationsimulationcycle-detectiongeometrystate-machine
  • Statistics & ExperimentsMediumModel answer
    Design an Experiment for a Cargo-Bike Last-Mile Delivery Program

    Design an A/B test for a bike-only dispatch pilot, covering metric selection, randomization unit trade-offs, and how shared courier supply creates interference.

    Statistics & Experimentsexperimentationmarketplacea-b-testingcausal-inference
  • Arrays & HashingMediumModel answer
    Peak Average Score: Overflow, Large Files, and Java Concurrency

    Aggregate student scores to find the highest per-student average, then extend the solution for huge files, negative values, integer overflow, and multithreaded processing.

    Arrays & Hashingjavaconcurrencyaggregationinteger-overflow
  • Machine LearningHardModel answer
    Designing a Credit Offer Recommendation Engine

    Design an end-to-end ML system that serves personalized financial product offers to millions of users, handling sparse delayed conversion signals and strict latency requirements.

    Machine Learningrecommendation systemsfeature engineeringdelayed feedbackmulti-task learning
  • System DesignMediumModel answer
    Time-Aware Airport Activity Recommender System

    Design a real-time system that suggests safe activities during airport layovers while guaranteeing travelers never miss their connecting flights.

    System Designreal-time systemsrecommendation systemsmobile architecturerisk management
  • System DesignHardModel answer
    Backend Architecture for a Scalable Group Messaging Platform

    Design the server-side core of an enterprise chat product: APIs, storage, idempotent and ordered message delivery, versioned membership access control, and real-time fan-out at scale.

    System Designmessagingidempotencystoragereal-time-delivery
  • BehavioralMediumModel answer
    Navigating Cross-Functional Disagreement as a Game PM

    Show how you diagnose partner objections, realign on shared player and business goals, and drive a scoped decision when a proposal meets resistance.

    Behavioralcross-functional-collaborationconflict-resolutionproduct-decisionsgame-product
  • Dynamic ProgrammingMediumAuto-graded
    Minimize Payment Transfers to Balance Group Accounts

    Tests backtracking with memoization to find the smallest number of payments needed to settle net balances across multiple participants.

    Dynamic Programmingbacktrackingmemoizationcombinatorial-search
  • SQL & DataMediumAuto-graded
    Daily Campaign Performance Summary Over a Rolling Window

    Tests conditional aggregation across multiple related tables, time-window filtering, fan-out avoidance, and safe division when computing per-day engagement rates.

    SQL & Dataaggregationjoindata-manipulation
  • Data Structure DesignMediumAuto-graded
    Score Tracker with Ranking and Top-K Queries

    Tests the ability to maintain ordered scores with efficient updates and rank lookups using augmented balanced search trees.

    Data Structure Designbinary-search-treeorder-statisticsdata-structures
  • Data Structure DesignMediumAuto-graded
    Versioned Key-Value Log with Point-in-Time Reads

    Tests per-key version tracking and efficient predecessor search to retrieve the most recent value written at or before any queried timestamp.

    Data Structure Designbinary searchhash mapversioning
  • System DesignMediumModel answer
    Build a Policy-Driven Expense Approval Engine

    Design an extensible rule evaluation system that validates expense reports against configurable business policies and returns a structured approval decision.

    System Designobject-oriented designextensibilitystrategy patternpython
  • Statistics & ExperimentsHardModel answer
    Testing Product Changes in a Multi-Sided Marketplace

    Design A/B tests for feature launches in a delivery marketplace, addressing unit selection, metric definition, interference, and trade-offs across users, merchants, and revenue.

    Statistics & Experimentsexperimentationcausal-inferencemarketplaceproduct-metrics
  • System DesignMediumModel answer
    Object-Oriented Design of a Minesweeper Game with Per-Cell Mine Probabilities

    Design an OO Minesweeper where each cell carries an independent mine probability, covering initialization, class model, click/print APIs, state transitions, and testability.

    System Designobject-oriented-designstate-machineflood-filldependency-injection
  • BehavioralMediumModel answer
    Structuring Behavioral Answers for Technical Program Manager Roles

    Prepare cohesive responses to common TPM behavioral prompts: intro, project history, motivation, challenges, and missed deadlines.

    Behavioralbehavioraltechnical-program-managerSTAR-methodleadership
  • Trees & GraphsHardModel answer
    Check Whether a Node Sequence Is a Valid BFS on a Tree

    Given an undirected tree and multiple permutations of its nodes, determine for each permutation whether it could be the dequeue order of some BFS starting at its first element.

    Trees & GraphsBFStreessimulationhashing
  • Dynamic ProgrammingHardAuto-graded
    Expected Steps to Deplete Whole Pills from a Random Draw Process

    Tests modeling a stochastic process as a Markov chain and solving it with dynamic programming using conditional expectation.

    Dynamic Programmingprobabilityexpectationmarkov-chainrecurrence
  • System DesignHardModel answer
    Design Data Models and Pipelines for a Robotaxi Fleet

    Design the analytics data model for a remote vehicle assistance function and an end-to-end pipeline for measuring autonomous fleet stability.

    System Designdata modelingpipelinestelemetryreal-time systems
  • System DesignHardModel answer
    Design a Link-Shortening Service with Click Tracking

    Design a distributed URL shortener handling billions of daily redirects with sub-50ms latency and decoupled, accurate click counting.

    System Designdistributed-systemscachingstream-processing
  • Data Structure DesignHardModel answer
    Mutable Integer Set with Freeze-Frame Iterators

    Design an integer set supporting O(1) add/remove/contains plus snapshot iterators that capture insertion-order state at creation time without copying.

    Data Structure Designsnapshotsiteratorsappend-only logversioning
  • Data Structure DesignMediumModel answer
    Build a Path-Addressed Tree Store and a Bounded Ring Buffer

    Design an in-memory hierarchical path store with strict parent-existence errors, plus a fixed-capacity FIFO queue where every operation is constant time.

    Data Structure Designtriehash-mapcircular-bufferapi-design
  • Arrays & HashingMediumModel answer
    Simulating Motion Under Time-Varying Visibility Constraints

    Determine how many entities moving rightward on a line reach a target position when their movement is blocked by a direction-switching observer.

    Arrays & Hashingsimulationbinary-searchprefix-sum
  • Trees & GraphsMediumModel answer
    Height-Balanced Nodes in Heap-Array Trees

    Traverse a binary tree stored in heap-index layout to find every node whose subtree is height-balanced, returning each with its tree level.

    Trees & Graphsbinary-treepost-orderheap-layoutbottom-up