KatInterview

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

Interview Practice Problems

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

6016
Problems
2229
Auto-graded
15
Topics
274
Added today

Showing 5131–5160 of 6016 results

  • System DesignMediumModel answer
    Diagnosing a Latency Spike in a Distributed Ingestion Pipeline

    Walk through a systematic incident investigation: triage customer impact, correlate observability signals across service tiers, and separate root causes from cascading symptoms.

    System Designobservabilityincident-responsedistributed-systemsdebugging
  • Stacks & QueuesMediumAuto-graded
    Compute Arithmetic Expression with Operator Precedence

    Tests ability to parse and evaluate arithmetic expressions respecting operator precedence and left-to-right associativity without built-in eval.

    Stacks & Queuesparsingoperator-precedencemathstring-processing
  • Machine LearningHardModel answer
    Design a Short-Video Feed Ad Ranking System

    Design an end-to-end ML pipeline that selects, scores, and ranks ads in a short-video feed under strict latency, handling position bias and multiple competing objectives.

    Machine Learningads rankingmulti-task learningposition biasreal-time ML
  • Arrays & HashingMediumAuto-graded
    Classify Kernel Bottlenecks Using the Roofline Model

    Determine whether computational kernels are limited by arithmetic throughput or memory bandwidth using roofline analysis.

    Arrays & Hashingroofline-modelperformance-analysismemory-bandwidthcompute-bound
  • BehavioralMediumModel answer
    Taking Initiative Beyond Your Role and Seeing It Through

    Demonstrate ownership by sharing two stories: one where you stepped into work nobody asked you to own, and one where you spotted a company-wide improvement and drove it to completion.

    Behavioralownershipinitiativeinfluence without authority
  • Data Structure DesignMediumAuto-graded
    Request Quota Tracker with Rolling Time Windows

    Tests your ability to track request counts per user within a sliding time window using efficient data structures.

    Data Structure Designsliding-windowqueuerate-limiting
  • BehavioralMediumModel answer
    Narrating Career Progression and Pivotal Lessons

    Articulate your career arc through specific moments of growth, showing how challenges shaped your approach and prepared you for increasing responsibility.

    Behavioralbehavioralleadershipcommunication
  • SQL & DataMediumModel answer
    Multi-Part SQL Challenge on a Food Delivery Schema

    Write six targeted SQL queries spanning window functions, event anomalies, time-based filtering, and promo uplift analysis on a realistic food delivery dataset.

    SQL & Datawindow-functionsaggregationjoinstime-series
  • Stacks & QueuesMediumAuto-graded
    Days Until Higher Temperature

    Tests efficient computation of the distance to the next strictly greater element using a monotonic stack to achieve linear time complexity.

    Stacks & Queuesmonotonic-stacknext-greater-elementarrays
  • BehavioralHardModel answer
    Designing Business Logic and Evolving Public APIs

    Design extensible object-oriented backend logic and safely modify production APIs with versioning, compatibility, and rollout strategies.

    Behavioralobject-oriented-designapi-designbackward-compatibilitysoftware-engineering
  • System DesignHardModel answer
    Serialize and Restore Object Graphs Containing Cycles

    Design a cross-language JSON format and matching encoder/decoder that correctly handles circular references, shared subobjects, and hostile inputs.

    System Designserializationgraphscycle-detectionjson
  • Machine LearningMediumModel answer
    Explaining an ML Project You Built

    Present a machine learning project from problem definition through deployment, showing technical judgment, validation rigor, and awareness of real-world constraints.

    Machine Learningml-fundamentalsproject-experiencevalidationcommunication
  • Statistics & ExperimentsHardModel answer
    Comparing Engagement Between Feature Adopters and Non-Adopters

    Design an observational framework to measure whether users of a specific product feature are more engaged, while controlling for selection bias and confounding variables.

    Statistics & Experimentsexperimentationcausal-inferencemetricsobservational-study
  • BehavioralMediumModel answer
    Prioritizing Restaurant Onboarding with Limited Information

    Choose 500 restaurants from 1,000 to onboard in an unfamiliar market without metrics, address a schedule delay, and use early results to refine later work.

    Behavioralproduct-managementprioritizationexecutiondecision-making
  • BehavioralMediumModel answer
    Articulate Your Background and Navigate a Professional Challenge

    Present your experience, highlight impactful work, and walk through a substantive obstacle you overcame, demonstrating clarity, ownership, and growth.

    Behavioralcommunicationleadershipself-awarenesscareer-narrative
  • Math & Bit ManipulationMediumAuto-graded
    Residue Distribution of Dice Sums and 2×2 Stochastic Determinants

    Tests whether a candidate can compute modular probability distributions over two-dice outcomes and derive the determinant formula for a constrained matrix class.

    Math & Bit Manipulationprobabilitylinear-algebramodular-arithmetic
  • System DesignMediumModel answer
    Design a High-Throughput Notification Platform

    Build a system that ingests notification requests with sub-50ms latency, handles 10x traffic spikes, and delivers across multiple channels without overwhelming providers.

    System Designqueuesscalabilityrate-limitingdistributed-systems
  • Arrays & HashingMediumAuto-graded
    Top-K Document Retrieval by Cosine Similarity

    Tests vector similarity computation, efficient top-k selection with deterministic tie-breaking, and understanding of distance metrics in embedding spaces.

    Arrays & Hashingvectorssimilarityrankingnumerical-methods
  • Arrays & HashingMediumAuto-graded
    Add One to Array-Represented Number

    Tests array manipulation and carry logic when adding one to a number stored as an array of digits.

    Arrays & Hashingarrayssimulationmath
  • Data Structure DesignMediumModel answer
    Finding Consecutive Duplicates in Subarrays

    Design data structures to efficiently detect sequences of identical elements in an array and answer queries about their presence in suffixes.

    Data Structure Designarray-scanningpreprocessingrange-queries
  • System DesignMediumModel answer
    Boosting Clock Speed Without a Smaller Process Node

    Explore architecture, microarchitecture, and logic techniques to increase chip performance when process technology is fixed.

    System Designcomputer-architecturehardwareperformance-optimization
  • Greedy & IntervalsMediumAuto-graded
    Peak Overlap Point Across Closed Intervals

    Tests whether a candidate can use sweep-line event counting to locate the smallest integer covered by the greatest number of closed intervals.

    Greedy & Intervalssweep-lineintervalsdifference-array
  • Machine LearningMediumModel answer
    Building a Production LLM Agent with Tool Access and State

    Design a production system where an LLM agent uses external APIs to complete multi-step tasks, handling state, failures, security, and evaluation.

    Machine Learningllm-agentssystem-designproduction-mlsafety
  • BehavioralMediumModel answer
    Explain Your System: Architecture, Trade-offs, and Results

    Draw your project's architecture, defend major design choices with alternatives and trade-offs, and describe measurable business outcomes with your role.

    Behavioralarchitecturesystem-designleadershipproject-ownership
  • Statistics & ExperimentsMediumModel answer
    Are Two Regional User Populations Statistically Different?

    Design a rigorous statistical pipeline to test whether users from two geographic regions differ across a multivariate set of continuous behavioral features.

    Statistics & Experimentshypothesis-testingmultivariate-analysiseffect-size
  • System DesignHardModel answer
    Building a Task Scheduler for Millions of Jobs

    Design a system that persists and triggers jobs at specified times, handling millions of scheduled tasks and thousands of executions per second.

    System Designdistributed-systemsscalabilityfault-tolerance
  • BehavioralMediumModel answer
    Project Deep Dive: Decisions, Trade-offs, and Cross-Team Work

    Walk through a project you're proud of, defend your technical choices under scrutiny, reflect honestly on hindsight, and explain how you navigated PM and cross-team dynamics.

    Behavioralproject deep divetechnical decisionscross-functional collaborationtrade-offs
  • Arrays & HashingHardAuto-graded
    Maximum Likelihood Estimation for Uniform Distribution Bounds

    Tests understanding of MLE derivation for bounded distributions and bias correction in parameter estimation.

    Arrays & Hashingstatisticsestimationprobabilitymle
  • StringsEasyAuto-graded
    Sum Two Arbitrarily Large Signed Integers as Strings

    Tests digit-by-digit arithmetic with sign handling and carry/borrow logic for adding very large signed integers represented as strings.

    Stringsstring-manipulationmathdigit-arithmetic
  • System DesignMediumModel answer
    Building a Global Rate Limiting System

    Design a low-latency rate limiting system that enforces usage quotas across distributed API gateways while maintaining availability and handling failures gracefully.

    System Designdistributed-systemsrate-limitingscalabilityredis