KatInterview

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

Interview Practice Problems

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

6049
Problems
2239
Auto-graded
15
Topics
272
Added today

Showing 1381–1410 of 3810 results

  • BehavioralHardModel answer
    Deep-Dive on a Major Project You Drove: Scope, Decisions, and Lessons

    Present a substantial engineering project end to end: constraints, your role, a key design trade-off, the toughest bug, how you verified results, and what you would change.

    Behavioralbehavioraltechnical-leadershipownershiparchitecture-tradeoffs
  • System DesignMediumModel answer
    Designing an Evaluation Framework for Local Language Models

    Design and implement a robust, extensible evaluation harness for local LLM endpoints with metrics, concurrency control, and fault tolerance.

    System Designsystem designmachine learningpythonasyncio
  • System DesignMediumModel answer
    Building a Crew Rostering Backend with Safe Shift Claiming

    Design a backend for posting, claiming, and locking restaurant work shifts that prevents double-claims and overlapping assignments while serving a heavily read schedule view.

    System Designsystem-designconcurrencydata-modelingcaching
  • Statistics & ExperimentsEasyModel answer
    Two Trial Offers: Chance of One Ride and of Lasting Loyalty

    Work out, for a rider shown two independently fair-or-unfair prices on day one, the chance of exactly one ride the next day and the chance they eventually become a permanent rider.

    Statistics & Experimentsprobabilitybinomialmarkov-chainfirst-step-analysis
  • Machine LearningHardModel answer
    Differentiable Routing Strategies for Mixture-of-Experts Models

    Explore techniques to make hard MoE routing differentiable, comparing straight-through estimation, Gumbel-Softmax, REINFORCE, and gate-scaling alongside auxiliary anti-collapse mechanisms.

    Machine Learningmixture of expertsgumbel softmaxreinforcegradient estimation
  • SQL & DataMediumModel answer
    CTR Metrics with Deduplication Windowing and PR Model Evaluation

    Evaluate A/B experiment unique CTR using windowed SQL deduplication and analyze model precision-recall performance with weighted sample thresholds in Python.

    SQL & DataSQLWindow FunctionsPandasPrecision-Recall
  • System DesignMediumModel answer
    Building a Filterable Catalog Search with Live Facet Counts

    Design a billion-item catalog search service with relevance ranking, filters, accurate facet counts, stable pagination, and second-level freshness for fast-changing price and stock data.

    System Designsearchinverted-indexfacetingsharding
  • System DesignMediumModel answer
    Git, Docker, Python Environments and Modern C++ Essentials

    Explain a team Git workflow, Docker image practices, Python isolation and pinning, and core C++ idioms (RAII, moves, const), with reasons and trade-offs.

    System Designgitdockerpythoncpp
  • SQL & DataMediumModel answer
    Find Highest Weighted Venue Locations with Data Cleaning

    Compute top venue locations by summing vote weights using SQL and Python, while handling missing values, text normalization, and ties.

    SQL & DataSQLPythonData CleaningAggregation
  • Statistics & ExperimentsHardModel answer
    Detecting Structural Shifts, Building Counterfactuals, and Testing Interventions

    Detect structural shifts in time-series data, construct counterfactual predictions under non-stationary patterns, and design spillover-resistant validation experiments.

    Statistics & Experimentstime-serieschange-point-detectionab-testingcausal-inference
  • Math & Bit ManipulationHardModel answer
    Comprehensive Algorithmic Practice Set: Bitwise, Window, Monotonic Stack & Tree Operations

    A practice collection covering essential algorithms: bit manipulation, two pointers, monotonic stack, dynamic programming, binary search, tree path XORs, and graph re-rooting.

    Math & Bit Manipulationbit-manipulationmonotonic-stacktree-dpdynamic-programming
  • System DesignHardModel answer
    Design a Distributed Crossword Fill Engine

    Architect a scalable, fault-tolerant distributed system to solve large constraint-satisfaction crossword grid fills using parallel search strategies.

    System Designsystem-designdistributed-systemsconstraint-satisfactionparallel-computing
  • System DesignEasyModel answer
    Architecting Real-Time Data Sync with React and Firestore

    Architect a high-performance, cost-effective data retrieval strategy for a live fundraising application using React and Firestore.

    System Designreactfirebasefirestorearchitecture
  • BehavioralMediumModel answer
    Making Progress on a Project With Unclear Scope and Ownership

    Describe a time you moved forward on work with vague goals, requirements or ownership, and show how you cut uncertainty, paced decisions and kept stakeholders aligned.

    Behavioralbehavioralambiguityleadershipstakeholder-alignment
  • BehavioralHardModel answer
    Pitching Automated Unread Thread Pinning to Skeptical Engineers

    Deliver a structured pitch to persuade engineers to build auto-pinned unread chats, covering baseline metrics, architecture, performance budgets, and rollout guardrails.

    BehavioralStakeholder ManagementProduct SenseSystem ArchitectureA/B Testing
  • Machine LearningHardModel answer
    Build a Tiny Backpropagation Engine Over Torch Tensors

    Design a small tensor class that records a computation graph for add, mul, matmul, ReLU and sum, then runs reverse-mode differentiation to give correct gradients for every input.

    Machine Learningautogradbackpropagationreverse-mode-differentiationpytorch
  • BehavioralMediumModel answer
    Executive Behavioral: Elevator Pitch, Company Fit, and Stakeholder Trade-offs

    Craft compelling responses for behavioral questions targeting a Senior Product Manager role, focusing on career story, company alignment, and managing complex stakeholder trade-offs.

    BehavioralBehavioralProduct ManagementStakeholder ManagementTrade-offs
  • Statistics & ExperimentsHardModel answer
    Designing a Geo Experiment for a Seasonal Flu-Shot TV Flight

    Design a six-week local TV flight to lift flu vaccinations: pick and pair markets, define the KPI, choose a causal design, set media weight, run power math, and add guardrails.

    Statistics & Experimentsgeo-experimentcausal-inferencemedia-measurementpower-analysis
  • SQL & DataMediumModel answer
    Weekly Revenue Aggregation and Regional Drop Attribution

    Aggregate weekly revenue in SQL using ISO weeks, calculate period-over-period performance, and attribute regional drop drivers with guardrails against incomplete weeks.

    SQL & Datasqltime-seriesaggregationwindow-functions
  • System DesignMediumModel answer
    Design a Resilient Order Refund Workflow Engine

    Design an idempotent, durable DAG workflow execution system for processing order refunds, handling step dependencies, crash recovery, manual reviews, and financial consistency.

    System Designsystem-designdistributed-systemsidempotencystate-machines
  • BehavioralMediumModel answer
    Walk Through a Past Project and What You'd Change

    Describe a substantial technical project from the last two years, covering the problem, design trade-offs, delivery obstacles, measured results, and an honest look at what you would redo.

    Behavioralbehavioralproject-deep-diveretrospectivetechnical-leadership
  • Data Structure DesignMediumModel answer
    Transit Fleet Simulator: Sampling, Seating Limits, and Fast-Lane Riders

    Build a bus network simulator: downsample riders by origin-destination pair, board and drop under a capacity cap, validate event logs, and give priority-pass riders precedence.

    Data Structure Designsimulationheapstratified-samplingevent-ordering
  • Trees & GraphsMediumModel answer
    Shared Ancestors: Binary Tree to Multi-Parent Graph

    Find the lowest common ancestor of two nodes in a binary tree, then generalize to a directed acyclic graph where several incomparable lowest common ancestors can exist.

    Trees & Graphslowest-common-ancestorbinary-treedagbfs
  • System DesignHardModel answer
    Building a Pipeline for Fleet-Captured Panoramic Imagery

    Design a system that receives huge volumes of geotagged panoramic photos from a vehicle fleet, stores raw and processed versions durably, and serves location-based tiles quickly.

    System Designsystem-designobject-storagegeospatial-indexingresumable-uploads
  • Statistics & ExperimentsMediumModel answer
    Is This Coin Biased? Testing 560 Tails in 1,000 Tosses

    Run a two-sided one-sample proportion test on 560 tails out of 1,000 tosses at the 5% level, covering hypotheses, test statistic, p-value, and interpretation.

    Statistics & Experimentshypothesis-testingproportion-testnormal-approximationp-value
  • BehavioralEasyModel answer
    Walk Through a Production Defect You Contained and Prevented

    Describe a real production defect you found: how you limited the damage, found the root cause, verified the fix, and added a lasting control so it could not happen again.

    Behavioralbehavioralincident-responsestar-methodroot-cause-analysis
  • Machine LearningMediumModel answer
    End-to-End E-Commerce Purchase Intent Prediction Pipeline

    Design a robust data cleaning, pipeline, validation, and threshold-tuning strategy to predict session conversions evaluated on weighted F1 score.

    Machine Learningdata-preprocessingfeature-engineeringcross-validationclassification
  • System DesignMediumModel answer
    Git Branching, Large-Asset Management, and CI Pipeline Architecture

    Architect a robust Git branching model, asset versioning strategy, and CI integration for software repos dealing with large binary artifacts and automated testing.

    System Designgitci-cddevopstesting
  • System DesignMediumModel answer
    Build a Crash-Resilient Delayed and Recurring Task Runner

    Design a distributed service that runs one-off and cron-style tasks at scale with no lost work, safe retries, duplicate-submission protection, and cancellation.

    System Designsystem-designdistributed-systemsschedulingfault-tolerance
  • BehavioralHardModel answer
    Motivation and Engineering Mindset for an AI Safety Role

    Answer a three-part screening question on why you want to work on AI safety, a safeguards project you built, and how you balance shipping speed with verification.

    Behavioralbehavioralai-safetymotivationsafeguards