KatInterview

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

Interview Practice Problems

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

6074
Problems
2252
Auto-graded
15
Topics
274
Added today

Showing 4171–4200 of 6074 results

  • System DesignMediumModel answer
    Design a Distributed Cache for High-Traffic Static Assets

    Design a globally distributed caching layer that serves small static assets at hundreds of thousands of requests per second with sub-50ms latency and resilience to origin failures.

    System Designcachingcdndistributed-systemsscalability
  • Heaps, Sorting & SearchMediumAuto-graded
    K Most Common Values in an Array

    Tests frequency counting and top-k selection using hash maps, heaps, or bucket sort, including complexity trade-off reasoning.

    Heaps, Sorting & Searchhash-mapheapbucket-sort
  • Statistics & ExperimentsHardModel answer
    Quantifying Revenue Lift After a Global Feature Rollout with No Control Group

    Design a multi-strategy observational study to estimate causal impact on revenue and retention when a feature launched everywhere simultaneously, leaving no holdout.

    Statistics & Experimentscausal inferenceexperimentationobservational methodsdifference-in-differences
  • Arrays & HashingMediumAuto-graded
    Maximum Vacation Length and Efficient Distinct Value Counting

    Tests sliding window technique for contiguous subarrays with constraints and binary search optimization for counting distinct values in sorted arrays.

    Arrays & Hashingsliding-windowbinary-searchtwo-pointeroptimization
  • Machine LearningMediumModel answer
    Building a Policy-Driven Support Assistant with RAG

    Design an ML system that transforms company policy documents into actionable support workflows with evidence tracking and version control.

    Machine Learningragnlpml-systemspolicy-grounding
  • Trees & GraphsMediumAuto-graded
    Find the Hub Node in a Star-Shaped Network

    Tests recognition of star-graph topology and the insight that the central node is uniquely identified by its degree.

    Trees & Graphsgraphsdegreestar-graph
  • BehavioralMediumModel answer
    Engineering Manager Deep Dive: Promotions, Conflict, and PIPs

    Three people-management scenarios for an EM role: making a promotion case, resolving team conflict, and running a performance improvement plan.

    Behavioralengineering-managerpeople-managementpromotionsconflict-resolution
  • Arrays & HashingMediumAuto-graded
    Longest Subarray with Bounded Pairwise Spread

    Tests ability to use the two-pointer (sliding window) technique to find the longest contiguous subarray where the difference between the max and min elements stays within a given limit.

    Arrays & Hashingarraystwo pointerssliding window
  • System DesignMediumModel answer
    Real-Time Top-K Noisy-Service Ranker Over a Rolling Window

    Design an end-to-end pipeline that ingests high-volume error events and serves a live ranking of the K noisiest services over the last five minutes.

    System Designstream-processingsliding-windowtop-khot-keys
  • Machine LearningHardModel answer
    Designing a Restaurant Ranking System for a Food Delivery App

    Design an end-to-end personalized ranking system for a food delivery home feed, covering objectives, features, model architecture, evaluation, and feedback loops.

    Machine Learningrankingrecommendation-systemsmulti-task-learningfeature-engineering
  • Greedy & IntervalsMediumAuto-graded
    Maximize Total Score by Pairing Players Optimally

    Tests whether a candidate can apply a greedy sort-and-pair strategy to maximize the sum of pair minimums across a list of player ratings.

    Greedy & Intervalsgreedysortingarrays
  • BehavioralHardModel answer
    Six Core Behavioral Stories for Software Engineers

    Practice answering six behavioral questions — challenge, cross-team work, mentoring, criticism, ambiguity, and disagreement — with specific stories and clear personal ownership.

    BehavioralbehavioralleadershipSTARcommunication
  • System DesignHardModel answer
    Design a Distributed Full-Text Search Engine with Boolean Queries

    Design a scalable search system that indexes short user posts in near real-time and evaluates Boolean queries with stable cursor-based pagination.

    System Designinverted-indexdistributed-systemsquery-parsingpagination
  • Arrays & HashingHardAuto-graded
    Tiered Subscription Invoice with Mid-Cycle Proration

    Tests ability to combine prorated flat fees with two-tier volume pricing over a half-open time window.

    Arrays & Hashingsimulationmathaggregation
  • System DesignHardModel answer
    Concurrency Strategies for a Shared In-Memory Key-Value Store

    Compare global, striped, and lock-free locking for a concurrent hash map, then design an optimal strategy for read-heavy workloads.

    System Designconcurrencylockingkey-value storeread-write locks
  • System DesignMediumModel answer
    Token-Bucket Rate Limiter in Node.js/Express: Build & Review

    Implement a file-configured Express middleware using the token-bucket algorithm, then explain its design trade-offs as you would in a peer code review.

    System Designrate-limitingnode.jsexpresstoken-bucket
  • SQL & DataMediumModel answer
    Daily Funnel Metrics and 1-Day Retention in SQL and pandas

    Build a validated event layer, then compute daily funnel counts, per-user first-event dates, and a one-day retention rate using SQL and pandas.

    SQL & Datasqlpandasfunnelretention
  • StringsMediumAuto-graded
    Longest Uniform Stretch With a Swap Budget

    Tests efficient sliding-window reasoning to find the longest substring that can be made all one character using at most k single-character replacements.

    Stringssliding-windowstringsfrequency-counting
  • Trees & GraphsMediumAuto-graded
    Find the Bottleneck Weight Between Two Nodes

    Compute the smallest possible maximum edge weight along any path connecting two vertices in a weighted undirected graph.

    Trees & Graphsgraphunion-findgreedybottleneck-path
  • System DesignMediumModel answer
    Stream Processing Pipeline for High-Velocity Robot Sensor Data

    Design a fault-tolerant ingestion pipeline that sustains 2 GB/s of mixed telemetry from a distributed robot fleet with zero data loss and dual real-time and batch consumers.

    System Designstreamingkafkadistributed-systemsdata-engineering
  • Machine LearningMediumModel answer
    ML Fundamentals: Calibration, Features, Tokenization, Optimizers

    Demonstrate working knowledge of probability calibration methods and metrics, feature selection strategies including neural approaches, subword tokenizer variants, and Adam optimizer mechanics.

    Machine Learningmachine-learningdeep-learningnlpmodel-training
  • System DesignHardModel answer
    Design a Multi-Provider Flight Price Aggregation System

    Design a scalable service that aggregates, normalizes, and serves cheap flight offers from many providers under strict latency and cost constraints.

    System Designsystem-designcachingdistributed-systemssearch
  • Data Structure DesignMediumAuto-graded
    In-Memory Spreadsheet with Formula Evaluation and Cycle Detection

    Build a spreadsheet system that stores values, evaluates formulas referencing other cells, and prevents circular dependencies through pre-write validation.

    Data Structure Designgraphdependency-trackingcycle-detection
  • BehavioralHardModel answer
    Lead a Multi-Team Project Under a Hard Deadline

    Demonstrate cross-functional leadership, data-driven decisions, and honest self-reflection through one concrete project involving at least three functions.

    Behavioralleadershipcross-functionaldata-drivenstakeholder-management
  • System DesignMediumModel answer
    End-to-End Python Solution Workflow in a Cloud Notebook

    Walk through how you would design, implement, test, and document a Python coding exercise inside a cloud-hosted notebook environment from first principles.

    System Designpythonnotebookssoftware-designtesting
  • Arrays & HashingHardAuto-graded
    Experiment Sample Size and Runtime Calculator

    Tests ability to apply the two-sample normal approximation for A/B test sizing and convert a required sample count into a minimum experiment duration.

    Arrays & Hashingstatisticsexperimentationa-b-testing
  • Data Structure DesignMediumModel answer
    File Storage with Quotas, Copy, and Compression

    Build an in-memory file system tracking per-user storage limits, supporting file operations including duplication, compression, and quota-driven eviction.

    Data Structure Designhash-mapheapobject-oriented-designbookkeeping
  • Dynamic ProgrammingHardModel answer
    Two-Station Job Scheduling with Setups and a Downtime Window

    Assign and sequence three jobs across two parallel stations to minimize makespan, handling sequence-dependent changeovers, a precedence constraint, and a station blackout period.

    Dynamic Programmingschedulingcombinatorial-optimizationbranch-and-boundNP-hardness
  • Heaps, Sorting & SearchMediumAuto-graded
    Best Recall Cutoff That Meets a Minimum Precision Target

    Tests threshold search on a scored ranking: find the cut-point that maximises recall while keeping precision at or above a given floor, with correct tie-breaking.

    Heaps, Sorting & Searchsortingprecision-recallbinary-classification
  • Statistics & ExperimentsEasyModel answer
    Scaling a Standard Normal: Distribution of Y = aX + b

    Derive the mean, variance, and full PDF of an affine transformation of a standard normal random variable, and prove the result is still normal.

    Statistics & Experimentsprobabilitynormal-distributionchange-of-variablesexpectation