KatInterview

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

Interview Practice Problems

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

6043
Problems
2238
Auto-graded
15
Topics
274
Added today

Showing 4711–4740 of 6043 results

  • System DesignHardModel answer
    Design a Global Photo and Video Hosting Platform

    Architect a system that stores, processes, and serves user-generated photos and short videos at planetary scale with strong durability, low latency, and controlled cost.

    System Designobject-storageCDNmedia-processingdistributed-systems
  • SQL & DataMediumModel answer
    Compute Daily Conversion and User Order History with Deduplication

    Write SQL to calculate daily conversion metrics and per-user order summaries over a week, handling event deduplication and missing days.

    SQL & Datawindow-functionsaggregationdeduplicationdate-ranges
  • BehavioralMediumModel answer
    On-Call Incident Response: Severity Judgment and Change Correlation

    Walk through a production incident where you assessed severity, coordinated teams, and linked runtime signals to a recent deployment or feature flag to cut time to resolution.

    Behavioralincident-responseon-callescalationobservability
  • BehavioralEasyModel answer
    Working Effectively with Distributed and Remote Teams

    Discuss strategies for collaborating with teammates in different time zones and remote workers, then share a concrete example of successful collaboration.

    Behavioralcollaborationremote-workcommunicationdistributed-teams
  • Arrays & HashingMediumAuto-graded
    Identify All Projects with Maximum Team Size

    Group assignment pairs by project, count members per project, and return every project tied for the largest team.

    Arrays & Hashingarrayshashinggroupingcounting
  • Data Structure DesignMediumModel answer
    Design a Formula Engine with Cycle Detection

    Build a computation system where cells hold values or formulas referencing other cells, detecting circular dependencies before they corrupt state.

    Data Structure Designgraphstopological-sortcycle-detection
  • System DesignMediumModel answer
    Building a High-Throughput Request Throttling System

    Design a service that enforces per-client request limits across a distributed application, handling 100k+ QPS with single-digit millisecond latency.

    System Designdistributed-systemsrate-limitingredisscalability
  • BehavioralEasyModel answer
    Drive Cross-Team Alignment on a Shared Technical Dependency

    Describe a time you untangled stalled cross-team technical dependencies and drove teams to a shared outcome without relying on formal authority.

    Behavioralleadershipcross-functionalinfluencealignment
  • System DesignHardModel answer
    Design a Real-Time Multi-Camera Perception System for a Self-Driving Car

    Design an embedded onboard pipeline that ingests eight surround-view cameras and delivers tracked 3D obstacles, free space, and lane geometry to a motion planner within 40 ms.

    System Designautonomous-vehiclesreal-time-systemscomputer-visionembedded-systems
  • Machine LearningHardModel answer
    Real-Time Anomaly Detection System for High-Traffic Platform

    Build a streaming anomaly detection architecture that processes millions of requests per second, handles extreme class imbalance, and maintains feature consistency.

    Machine Learningml-systemsstreamingfeature-engineeringlabeling
  • System DesignHardModel answer
    Multi-Level Key-Value Store with Expiration and Time Travel

    Build an in-memory key-value store supporting CRUD, filtered queries, automatic expiration, and historical lookups across four progressive levels.

    System Designdata-structurestime-seriesversioningttl
  • BehavioralMediumModel answer
    Managing a Global Cross-Functional Team

    How would you lead a geographically dispersed team spanning multiple functions and regions, addressing time zones, cultural differences, and regulatory constraints?

    Behavioralleadershipdistributed-teamscommunicationstakeholder-management
  • System DesignMediumModel answer
    Build a Retry-Safe Task Scheduler for Event Notifications

    Design an async notification system for item availability and due-date reminders with durable idempotency and crash recovery.

    System Designasync-tasksidempotencydistributed-systems
  • System DesignMediumModel answer
    Building a Memory-Efficient Line Deduplication Tool

    Design a command-line tool that removes duplicate lines from files too large to fit in memory, using external sorting or partitioning.

    System Designexternal-memorydeduplicationsortingscalability
  • System DesignMediumModel answer
    Design a Real-Time Stock Availability Service

    Design a distributed inventory service that tracks stock across many locations, handles concurrent reservations without overselling, and pushes availability updates to clients in near real-time.

    System Designdistributed-systemsconcurrencycachingreal-time
  • SQL & DataMediumModel answer
    Build Candlestick Bars from a Raw Price Feed

    Parse a string of price-timestamp ticks, bucket them into fixed-width time windows, compute OHLC stats, and forward-fill any empty windows.

    SQL & Datatime-seriesaggregationdata-manipulationpython
  • Machine LearningMediumModel answer
    End-to-End ML Pipeline with NumPy and Pandas Only

    Build a complete, leak-free machine learning pipeline — preprocessing, training, and evaluation — using only NumPy and pandas, no ML libraries.

    Machine Learningsupervised-learninggradient-descentfeature-engineering
  • Arrays & HashingMediumAuto-graded
    Minimum Operations to Equalize Array by Selective Increments

    Tests insight that incrementing all-but-one is equivalent to decrementing one, leading to a sum-based formula instead of simulation.

    Arrays & Hashingmatharraysgreedy
  • System DesignHardModel answer
    Consensus Protocols: Architectural Trade-offs and Implementation

    Contrast two distributed consensus approaches, analyzing their mechanisms for leader election, replication, and fault tolerance to recommend one for a production service.

    System Designdistributed-systemsconsensusfault-tolerancereplication
  • Machine LearningHardModel answer
    Design an NL-to-Formula Assistant for a No-Code Spreadsheet Tool

    Design an ML system that converts natural-language requests into validated formula expressions grounded in a live table schema, with optional write-back to the data source.

    Machine Learningllm-orchestrationschema-groundingstructured-outputprompt-engineering
  • Trees & GraphsHardAuto-graded
    Prune All Leaves Matching a Value, Cascading Upward

    Tests whether a candidate can use post-order traversal to handle cascading leaf deletions in a binary tree encoded as a level-order list.

    Trees & Graphsbinary-treepost-order-traversalrecursiontree-serialization
  • Machine LearningHardModel answer
    Predicting Delivery Lateness Risk for a Food Delivery Platform

    Design an ML system to forecast whether orders will arrive after their promised time, covering feature engineering, temporal validation, calibration, and production deployment.

    Machine Learningml-system-designclassificationtemporal-datacalibration
  • Heaps, Sorting & SearchMediumAuto-graded
    K Nearest Points to Origin

    Tests heap-based selection and distance computation to efficiently find the k points closest to the origin in 2D space.

    Heaps, Sorting & Searchheapdistanceselectionoptimization
  • BehavioralMediumModel answer
    Analyzing and Resolving a Complex Technical Problem

    Discuss a challenging situation where you investigated a problem systematically, evaluated multiple solutions, and verified your approach worked.

    Behavioralbehavioralproblem-solvingtechnical-leadership
  • Data Structure DesignMediumAuto-graded
    Binary Layout Manager with Dynamic Field Insertion

    Tests ability to maintain ordered sequences with efficient prefix-sum queries and positional insertions using balanced tree structures.

    Data Structure Designbinary-search-treeprefix-sumdata-structure-design
  • Trees & GraphsMediumAuto-graded
    Subtree Erasure in an Array-Backed Binary Tree

    Tests implicit heap-tree traversal, subtree identification via index arithmetic, and stable compaction without mutating the input array.

    Trees & Graphstrees-graphsarraysbfs-dfs
  • Data Structure DesignMediumModel answer
    Build a Tree System with LRU Cache and Command History

    Design a data structure for a tree where nodes can be read, modified, and traversed, with an LRU cache for fast access and an undo stack for reverting changes.

    Data Structure Designlru-cachetree-traversalcommand-patternundo-redo
  • Arrays & HashingEasyAuto-graded
    Best-of-Five: Probability All Five Games Are Played

    Tests whether a candidate can derive the closed-form probability that a best-of-five series requires all five games, using combinatorial reasoning.

    Arrays & Hashingprobabilitycombinatoricsmath
  • Arrays & HashingEasyAuto-graded
    Expected Coin Flips to Observe Heads Then Tails

    Tests ability to model a probabilistic process with states and solve expectation equations.

    Arrays & Hashingprobabilityexpected-valuemarkov-chains
  • Statistics & ExperimentsMediumModel answer
    Marketplace Pricing Test with Supply-Demand Interactions

    Design an experiment to test a pricing change in a two-sided marketplace where users interfere with each other through shared supply.

    Statistics & Experimentsexperimentationcausal-inferencenetwork-effectsmarketplace