KatInterview

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

Interview Practice Problems

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

6117
Problems
2267
Auto-graded
15
Topics
272
Added today

Showing 3361–3390 of 6117 results

  • System DesignMediumModel answer
    Frequency Capping at 500K QPS: Low-Latency Ad Eligibility

    Design a sharded, in-memory service that decides in under 10 ms whether a viewer has hit ad/campaign caps, with async impression counting and deliberate soft-cap tolerance.

    System Designsystem-designrate-limitingdistributed-systemscaching
  • Heaps, Sorting & SearchHardModel answer
    Identify Hidden Conflict with Minimal Oracle Queries

    Find one conflicting pair among n items using a black-box oracle that tests subsets, minimizing the number of expensive queries.

    Heaps, Sorting & Searchbinary-searchoptimizationoracleinformation-theory
  • Trees & GraphsMediumAuto-graded
    Retrieve Kth Smallest Element from Array-Encoded BST

    Tests in-order traversal of a binary search tree encoded in parallel arrays, with early termination and iterative stack management.

    Trees & Graphsbinary-search-treein-order-traversaliterativestack
  • Math & Bit ManipulationMediumAuto-graded
    Minimize Expected Candidates with Position-Match Feedback

    Tests ability to model a greedy partitioning strategy using bitmask bucketing to minimize expected remaining candidates under green-only feedback.

    Math & Bit Manipulationgreedybitmaskhashing
  • Statistics & ExperimentsHardModel answer
    Designing a Two-Sided Marketplace Experiment

    Design a rigorous causal experiment for a two-sided platform feature, handling network interference through cluster randomization and spillover measurement.

    Statistics & Experimentsexperimentationcausal-inferencemarketplacenetwork-effects
  • Data Structure DesignMediumModel answer
    Build a Configurable Disc-Drop Game Engine

    Design and implement a gravity-based four-in-a-row game engine with a clean API, local win detection, and support for arbitrary board sizes and run lengths.

    Data Structure Designgame-engineapi-design2d-arraywin-detection
  • System DesignMediumModel answer
    Build an Extensible Event-Driven Trading Strategy Framework

    Design a maintainable framework that routes market events to trading strategies, manages order lifecycle, and runs identically in backtests and live trading.

    System Designevent-driventradingframework-designextensibility
  • Data Structure DesignMediumModel answer
    Build a Slash-Command Router with Literal and Wildcard Segments

    Implement a trie-based router that matches tokenized bot commands to registered handlers, resolving conflicts between exact and parameterized path segments.

    Data Structure Designtrieroutingdesignstring-parsing
  • Trees & GraphsMediumAuto-graded
    Count Reachable Cell Clusters in a Grid

    Tests grid-based connected-components detection using flood-fill or DFS, covering neighbor connectivity, visited-state tracking, and iterative traversal.

    Trees & Graphsgraphsgriddfsconnected-components
  • System DesignHardModel answer
    Design a Distributed Scheduling and Calendar Platform

    Design a calendar system for millions of users covering event storage, recurring rule expansion, time zone correctness, and a responsive frontend with optimistic updates.

    System Designdistributed-systemsdata-modelingfrontend-architecturetime-zones
  • SQL & DataHardAuto-graded
    Compute Per-Warehouse Reorder Alerts from Inventory Logs

    Tests group-by aggregation over a list-of-dict records, computing per-warehouse stock summaries and flagging items that need reordering.

    SQL & Datadata processinggroup-by aggregationdictionaries
  • Statistics & ExperimentsMediumModel answer
    CTR Confidence Intervals and Variance Decomposition

    Derive a pooled click-through rate estimator, compare Wald vs. exact binomial confidence intervals, and separate real day-to-day volatility from sampling noise.

    Statistics & Experimentsconfidence-intervalsbinomial-proportionvariancectr
  • BehavioralEasyModel answer
    Managing a High-Stakes Production Outage While On-Call

    Walk through a real production incident you owned: how you triaged, contained, coordinated, and prevented recurrence.

    Behavioralon-callincident managementproduction systemsleadership
  • Machine LearningHardModel answer
    Design an End-to-End RAG System for a Large Document Corpus

    Design a production RAG pipeline that ingests millions of documents, retrieves grounded context, and generates cited answers with low latency at scale.

    Machine LearningRAGLLMvector-searchsystem-design
  • SQL & DataHardModel answer
    Design a University Enrollment Schema, Warehouse, and SQL

    Model a university domain in 3NF, build a star schema with SCD Type 2 history, plan partitioning for 100M+ rows, and write two analytic queries.

    SQL & Datadata-modelingstar-schemaSCDpartitioning
  • Data Structure DesignMediumAuto-graded
    Train Line Fare System with Dynamic Routes and Weekend Pricing

    Tests object-oriented design, index lookups, dynamic data structure updates, and conditional pricing rules in a fare calculation system.

    Data Structure Designobject-oriented-designhash-mapsimulation
  • BehavioralMediumModel answer
    Defending Technical Depth in a Project Walkthrough

    Present one project end to end, then defend its technical depth and explain how you aligned with partner teams and with your own engineers.

    Behavioralproject-deep-divetechnical-depthcross-functional-alignmentownership
  • Statistics & ExperimentsMediumModel answer
    Uniform Random Sampling and Histogram Percentile Calculation

    Generate uniformly distributed points in a square region and compute percentiles from binned frequency data using linear interpolation.

    Statistics & Experimentsprobabilitysamplinginterpolationpercentiles
  • Machine LearningHardModel answer
    Ultra-Low-Latency GBDT Inference for a Live Trading Pipeline

    Design an end-to-end strategy to cut a 1,000-tree gradient-boosted ensemble's inference time from 120 µs to under 5 µs p99 without changing any prediction.

    Machine Learninginference optimizationGBDTlow-latencySIMD
  • Arrays & HashingEasyAuto-graded
    Daily and Rolling Active User Counts with Zero-Fill

    Tests building a complete calendar spine, counting distinct daily users, and maintaining a 30-day rolling active-user window.

    Arrays & Hashinghash-mapsliding-windowdate-manipulation
  • System DesignMediumModel answer
    Build a Lodging Booking Widget with Correct Pricing

    Design and implement a reservation widget: date/guest inputs, dynamic price breakdown, validation, disabled booking on invalid or sold-out stays, and a confirm dialog.

    System Designfrontendstate-managementpricingvalidation
  • Data Structure DesignMediumAuto-graded
    Tiered Cache with TTL and Priority Fallback

    Implement a hierarchical key-value cache with expiration times, priority-based lookups, and lazy eviction across multiple storage tiers.

    Data Structure Designhash-tableheapdata-structure-design
  • BehavioralMediumModel answer
    Prepare structured responses to four core behavioral scenarios

    Deliver clear, impact-focused answers to four fundamental behavioral prompts: handling conflict, influencing peers, recovering from setbacks, and navigating constraints.

    Behavioralbehavioralleadershipcommunicationstar-method
  • BehavioralMediumModel answer
    Walk Through One Project You Led, End to End

    Deliver a structured 5–7 minute walkthrough of a single project: context, your ownership, design decisions, delivery, measured impact, challenges, and a real retrospective.

    Behavioralproject-walkthroughownershiptechnical-communicationsystem-design
  • Dynamic ProgrammingMediumModel answer
    Fewest Transfers to Clear Everyone's Net Balance

    Given payer/payee/amount triples, compute net balances and return an optimal (minimum-count) set of settlement transfers that zeroes everyone out.

    Dynamic Programmingbitmask-dpgreedysubset-sumaccounting
  • Arrays & HashingHardAuto-graded
    Three-in-a-Row: Find the Winner on a 3×3 Grid

    Tests whether you can encode all win conditions for a 3×3 grid as data and apply a uniform check to identify a winning player.

    Arrays & Hashingarraysgame-theorysimulation
  • System DesignMediumModel answer
    Rate-Limiting Service with Token Buckets at Global Scale

    Design a distributed rate limiter that enforces per-user request quotas across multiple regions with low latency and no single point of failure.

    System Designrate-limitingredisdistributed-systemstoken-bucket
  • System DesignHardModel answer
    Build a Time-Series Observability Pipeline for a Large Fleet

    Design an end-to-end metrics collection and alerting system for tens of thousands of hosts, then go deep on cardinality control, storage layout, or alert evaluation.

    System Designmonitoringtime-seriescardinalitydistributed-systems
  • System DesignHardModel answer
    Design a Job Scheduler for a Distributed Rendering Cluster

    Design a distributed scheduling service that assigns variable-length rendering jobs to a heterogeneous GPU cluster while balancing priority tiers, resource fit, and fault tolerance.

    System Designschedulingdistributed-systemsgpuresource-management
  • System DesignHardModel answer
    Design a Real-Time Quiz Showdown with Buzzer Lockouts

    Design a multiplayer live quiz system where players race to buzz in, wrong answers trigger a timed lockout, and fairness holds across varying network conditions.

    System Designreal-timewebsocketsmatchmakinglatency