KatInterview

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

Interview Practice Problems

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

5962
Problems
2208
Auto-graded
15
Topics
271
Added today

Showing 1–30 of 3754 results

  • System DesignMediumModel answer
    Build a Multi-User Live Text Editing Platform

    Design a service where many people edit one document at once, see each other's changes quickly, keep history, show live cursors, and can work offline, all while converging to one state.

    System Designsystem-designreal-timeoperational-transformationcrdt
  • Data Structure DesignMediumModel answer
    Python ABCs and the Three Kinds of Methods Explained

    Explain how abstract base classes work in Python and how instance, class and static methods differ in binding, inheritance behavior and typical use.

    Data Structure Designpythonoopabstract-classesclassmethod
  • System DesignMediumModel answer
    Stock Reservation Service for a Flash-Sale Storefront

    Design a stock service that reports sellable quantity and reserves items for orders without overselling under concurrency, with idempotent retries, expiry, and contention handling.

    System Designconcurrency-controlidempotencyinventorytransactions
  • Trees & GraphsHardModel answer
    Construct Non-Conflicting Queens Configurations

    Compute all possible configurations of n non-attacking queens on an n x n board using stateful depth-first search.

    Trees & Graphsbacktrackingrecursiondepth-first-search
  • Data Structure DesignMediumModel answer
    Handling Seekable Body Replays on 307 Redirects in Python requests

    Debug and implement stateful body rewind logic for seekable file-like streams when executing HTTP 307 redirects in an HTTP client library.

    Data Structure Designpythonhttpdebuggingstreams
  • Statistics & ExperimentsMediumModel answer
    Judging Two Short-Form Ephemeral Content Products Head to Head

    Design a measurement plan to decide which of two sibling apps has the stronger ephemeral photo/video feature, covering metrics, confounders, and causal methods.

    Statistics & Experimentsmetric-designcausal-inferenceexperimentationproduct-analytics
  • BehavioralMediumModel answer
    Walking Through a Past Engineering Mistake and What Changed

    Behavioral question: recount a real technical error from an internship or project, explain its root cause, how you worked with others to fix it, and the lasting habits you built.

    Behavioralbehavioralaccountabilityroot-cause-analysisfeedback
  • Statistics & ExperimentsEasyModel answer
    Simulated Trading Round: Arbitrage, Bet Sizing, and Market Making

    Evaluate probability lines, identify structural arbitrage, determine optimal Kelly stake allocations, and quote dynamic markets during a multi-game simulation.

    Statistics & Experimentsprobabilityexpected-valuekelly-criterionarbitrage
  • System DesignMediumModel answer
    Design a Multi-Location Book Reservation & Inventory System

    Architect a distributed inventory, reservation, and circulation platform across multiple physical locations with transactional guarantees, idempotency, and search index synchronization.

    System Designsystem-designdistributed-systemsconcurrencydatabases
  • System DesignHardModel answer
    Global Link Shortener: Fast Redirects and Collision-Free Aliases

    Design a worldwide short-link service with fast, always-available redirects, unique compact IDs, custom aliases, expiry, and asynchronous click analytics.

    System Designsystem-designurl-shortenercachingid-generation
  • System DesignEasyModel answer
    Fastest Way to Get a 2 TB Dataset to a Colleague in San Francisco

    Estimate and compare network transfer against shipping physical storage for a 2 TB dataset, state assumptions, and identify when each approach wins.

    System Designback-of-envelopedata-transfernetworkingestimation
  • Statistics & ExperimentsMediumModel answer
    Raising Member Profile Completeness: Metrics, Gaps, Tests

    Design a measurement and experimentation plan to get more members of a professional network to fill out their profiles, from defining completeness to testing interventions.

    Statistics & Experimentsproduct-analyticsexperiment-designmetricssegmentation
  • BehavioralMediumModel answer
    Technical Ownership Story and Ship-Fast-Versus-Safe Judgment Call

    Prepare a structured account of a technically demanding project you led, plus a story about shipping under deadline pressure while managing correctness risk and technical debt.

    Behavioralbehavioraltechnical-leadershipproject-deep-divetrade-offs
  • BehavioralMediumModel answer
    Pitching Your Product Background for a Luxury EV Software Role

    Prepare a connected set of answers for a premium electric-vehicle PM conversation: career story, company knowledge, motivation, future goals, and a user-experience case study.

    Behavioralbehavioralproduct-managermotivationux
  • SQL & DataMediumModel answer
    Last-Touch Ad Attribution: Daily Campaign Conversion Report

    Write a SQL query that credits each conversion to the latest eligible ad impression within a 7-day lookback, then reports daily campaign metrics for January 2024.

    SQL & Datasqlwindow-functionsattributionjoins
  • System DesignMediumModel answer
    Designing Reusable Agent Skills with Staged Context Loading

    Describe what a reusable skill package is in an agent system, how it differs from a plain prompt, and how loading its content in stages keeps context small while limiting risk.

    System Designagentsllm-systemscontext-managementprogressive-disclosure
  • Trees & GraphsHardModel answer
    Grid Partitioning and Navigating Safe Subregions

    Construct a valid contiguous layout for multiple crop zones on a grid and find the shortest path avoiding edge-touching zones.

    Trees & Graphstrees-graphsgridbfsconstructive-algorithms
  • Statistics & ExperimentsMediumModel answer
    Testing a Global-Ranking Change in a Location-Based Social App

    Design metrics, a randomization scheme that handles interference, and a novelty-versus-durable-effect plan for a ranking change that favors globally active users over nearby ones.

    Statistics & Experimentsab-testingmarketplacenetwork-effectsinterference
  • Data Structure DesignMediumModel answer
    Design a Blackjack Game Engine

    Architect an object-oriented Blackjack engine handling multi-deck shoes, split hands, and soft/hard total calculations.

    Data Structure DesignData Structure DesignObject-Oriented DesignState Machine
  • System DesignMediumModel answer
    Design an Automated Health and Recovery Platform for a GPU Fleet

    Design a platform that ingests high-rate telemetry from 100,000 GPU servers, detects hardware faults, runs safe repair workflows, and limits how many machines are taken offline at once.

    System Designsystem-designtelemetrykafkaworkflow-engine
  • Trees & GraphsMediumModel answer
    Graph Toolkit for Scene and Dependency Graphs: Sort, Traverse, Route

    Implement topological sort, BFS, DFS and Dijkstra on a dependency graph, then discuss CSR versus adjacency lists, CPU/GPU parallel traversal, and deterministic testing.

    Trees & Graphstopological-sortbfs-dfsdijkstracsr
  • System DesignMediumModel answer
    Camera Lens Health Monitor and Intermittent Fault Triage for a Driver-Assist Vehicle

    Design a sensor layout, lens-obstruction detector and fallback logic for a driver-assist vehicle, then plan how to track down a camera fault that fires about once an hour in clear weather.

    System Designembeddedautomotivesensor-fusionfault-diagnosis
  • System DesignMediumModel answer
    Designing a Modular and Fault-Tolerant Retry Library

    Design a pluggable retry library that supports configurable backoff, jitter strategies, stopping criteria, cancellation timeouts, and dynamic retry headers.

    System DesignAPI DesignFault ToleranceConcurrencyDesign Patterns
  • Statistics & ExperimentsHardModel answer
    Three-Variable Correlation Limits and Omitted Regressor Bias

    Show why three correlations must satisfy a determinant constraint, find the valid equicorrelation range, and derive the probability limit of a slope when a relevant regressor is left out.

    Statistics & Experimentscorrelation-matrixpositive-semidefiniteomitted-variable-biaslinear-regression
  • BehavioralEasyModel answer
    Navigating a Technical Disagreement With a Colleague

    Describe a real technical disagreement with a teammate or stakeholder, how you used evidence and respectful dialogue to reach a decision, and what you learned about working in a team.

    Behavioralbehavioralconflict-resolutioncollaborationdecision-making
  • Statistics & ExperimentsMediumModel answer
    Comparing Bayesian and Frequentist Decision Rules in A/B Testing

    Analyze an A/B experiment using Bayesian posteriors, expected loss decision rules, sequential peeking effects, and prior calibration techniques.

    Statistics & Experimentsstatisticsab-testingbayesian-inferencehypothesis-testing
  • SQL & DataMediumModel answer
    Calculate Current Item Inventory from Movements and Baselines

    Compute up-to-date item stock by merging starting snapshot balances with subsequent movement logs using SQL aggregations and joins.

    SQL & Datasqlaggregationjoins
  • BehavioralMediumModel answer
    Telling the Story of Your Best Open-Source Pull Request

    Describe a real open-source contribution end to end: the project, your role, design choices, review collaboration, measurable results, and what you did after the merge.

    Behavioralbehavioralopen-sourceownershipstar-method
  • BehavioralMediumModel answer
    Demonstrating Informal Leadership, Technical Pivot, and Project Ownership

    Learn how to structure a behavioral interview answer showing cross-functional leadership without explicit authority, handling pivots with data, and delivering measurable impact.

    Behavioralleadershipownershipinfluence-without-authoritybehavioral-interview
  • BehavioralMediumModel answer
    Two Project Deep Dives and Three Leadership Scenarios

    Present two contrasting projects with your role, decisions, results and lessons, then explain how you handle vague requirements, slipping deadlines and decisions made without full data.

    Behavioralbehavioralleadershipstakeholder-managementdecision-making