KatInterview

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

Interview Practice Problems

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

6040
Problems
2237
Auto-graded
15
Topics
275
Added today

Showing 1201–1230 of 3803 results

  • System DesignHardModel answer
    Designing Asynchronous Systems: Queues, NoSQL Stores, and Concurrency

    Analyze message queues, delivery semantics, push vs. pull models, NoSQL vs. relational databases, and distributed concurrency controls including deadlock resolution.

    System Designsystem-designmessage-queuesnosqlconcurrency
  • BehavioralMediumModel answer
    Walk Through Your Most Impactful Engineering Projects

    Present a past software project end to end: the problem, your ownership, key decisions, obstacles, success metrics, results and lessons learned, in a structured and defensible way.

    Behavioralbehavioralproject-deep-diveownershipimpact-metrics
  • System DesignHardModel answer
    Design a Cloud IDE System for Browser-Based Code Execution

    Architect a cloud-based development environment enabling real-time browser code editing, interactive terminal streaming, sandboxed execution, and workspace state persistence at scale.

    System Designsystem-designcloud-idesandboxingwebsockets
  • Statistics & ExperimentsMediumModel answer
    Sizing Sydney's Flower Shops and Quoting a Market on the Count

    Estimate how many walk-in florist shops are in Greater Sydney using two independent methods, quote a bid/ask on the count, then revise after a trade and a partial registry count.

    Statistics & Experimentsfermi-estimationmarket-makingbayesian-updatingadverse-selection
  • Trees & GraphsMediumModel answer
    Build a Collapsible JSON Tree Renderer in React

    Design and implement a React component to display nested JSON with collapsible nodes, indentation, and syntax highlighting for primitive types.

    Trees & GraphsReactJSONTreeFrontend
  • Statistics & ExperimentsMediumModel answer
    Flash-Sale Order Burst: Triage, Decision Policy and Safer Promos

    Triage a suspicious burst of flash-sale orders, set priced approve/hold/reject rules under chargeback and review-capacity limits, then redesign the promo and plan a safe rollout.

    Statistics & Experimentsfraud-analyticsdecision-thresholdscost-matrixexperiment-design
  • System DesignMediumModel answer
    Designing a High-Throughput Order Management & Execution System

    Design a scalable retail brokerage order management system handling limit/market orders, cancellations, concurrency-safe account balances, and edge cases like lost/duplicate fill reports.

    System Designsystem-designdistributed-systemsconcurrencyfintech
  • System DesignMediumModel answer
    Design and Implement a 2x3 React Post Grid with API Integration

    Build a 2x3 React grid component for display feeds, integrate data loading with proper state management, and explain React hook mechanics.

    System Designreactfrontendcss-gridhooks
  • Data Structure DesignMediumModel answer
    Refactoring and Hardening a Driver Dispatch Service

    Identify anti-patterns in legacy dispatch assignment code, implement fixes, introduce domain types, and design for thread-safety.

    Data Structure Designrefactoringthread-safetyobject-oriented-designclean-code
  • Statistics & ExperimentsHardModel answer
    Building a Fair Scorecard for Last-Mile Couriers

    Design a measurement system that evaluates couriers fairly across very different routes and conditions, going beyond raw parcel counts and elapsed time.

    Statistics & Experimentsmetrics-designnormalizationmixed-effects-modelsfairness
  • System DesignMediumModel answer
    Design a Real-Time Driver Tracking and Nearby Location Service

    Architect a low-latency ingestion and spatial indexing system for tracking real-time vehicle locations and serving proximity queries at high scale.

    System Designsystem-designgeospatialin-memory-databasestream-processing
  • System DesignHardModel answer
    Design a Collaborative LLM Prompt Workbench with Live Streaming

    Design a multi-tenant web tool where teams author prompts, run them on external LLMs with streamed output, version and compare results, and track cost, latency, and safety.

    System Designsystem-designstreamingmulti-tenancyidempotency
  • System DesignMediumModel answer
    Design an E-Commerce Search and Typeahead System

    Architect a low-latency prefix typeahead and full-catalog product search system capable of handling high traffic spikes and near real-time inventory updates.

    System Designsystem-designautocompletesearchtrie
  • Machine LearningMediumModel answer
    Leakage-Safe Binary Classifier Workflow: From EDA to Monitoring

    Design and implement an end-to-end binary classification workflow in Python, covering time-aware splits, imbalance, tuning, calibration, error analysis, explainability and production safeguards.

    Machine Learningclassificationtime-aware-validationclass-imbalancecalibration
  • Dynamic ProgrammingHardModel answer
    Identify Compound Words in a Dictionary

    Find all strings in a list that can be constructed by concatenating two or more smaller strings from the same list.

    Dynamic Programmingstringsdynamic-programmingtriehash-table
  • Machine LearningHardModel answer
    Architectural Comparison of Sequence Models and MPC Integration

    Detailed comparison of RNNs, LSTMs, Transformers, and Model Predictive Control, including mathematical formulations, structural trade-offs, and hybrid learning-control frameworks.

    Machine Learningdeep-learningtransformersmpcrobotics
  • Machine LearningMediumModel answer
    Arrival-Time Prediction for a Ride-Share App: End-to-End ML Design

    Design a machine learning system that predicts driver pickup time and trip duration, covering labels, features, models, metrics, bias, noise, serving, monitoring, and post-launch experiments.

    Machine Learningeta-predictionspatiotemporalmodel-designcalibration
  • SQL & DataMediumModel answer
    Shared-Document Analytics: Sources, Partners, and Country Rates

    Use deduplicated user-document pairs to analyze how collaborators arrive, who works most with a given user, and which country has the highest share of users who collaborate.

    SQL & Datasqlpandasself-joindeduplication
  • BehavioralMediumModel answer
    Explaining Past System Architecture Decisions and Engineering Trade-Offs

    Demonstrate technical leadership, system architecture experience, and problem-solving skills by deep-diving into a past project's engineering trade-offs and failures.

    Behavioralsystem designarchitectureleadershipbehavioral
  • Machine LearningMediumModel answer
    Targeting Strategy for a Streaming Show Launch Email Campaign

    Plan an end-to-end email targeting system for a new title release, covering cold start, causal uplift modeling, offline metrics, and online A/B testing.

    Machine Learninguplift-modelingrecommendation-systemsab-testingsystem-design
  • Statistics & ExperimentsMediumModel answer
    Designing A/B Experiments for Banner Ads and Group Stories

    Learn how to design A/B tests for ad monetization and social features, including metric selection, handling fat-finger clicks, and managing network interference.

    Statistics & Experimentsab-testingexperimentationmetricsnetwork-effects
  • Data Structure DesignMediumModel answer
    Build Stateful Round-Robin and Consistent Hash Load Balancers

    Implement thread-safe Round-Robin and Consistent Hashing balancers supporting health checks and dynamic nodes, then analyze their performance.

    Data Structure Designload-balancerconsistent-hashinground-robindata-structure-design
  • System DesignEasyModel answer
    Design a User Profile Ingestion System: Batch vs. Streaming

    Design an ingestion and processing pipeline for JSON user profiles, comparing batch file arrivals against a real-time event streaming paradigm.

    System Designsystem designbatch processingevent streamingetl
  • Statistics & ExperimentsMediumModel answer
    Estimating Personalization Impact via AB Test Covariate Adjustment

    Analyze an A/B test on content recommendation by calculating the ATE, deriving robust 95% confidence intervals, and evaluating covariate adjustment techniques like Lin's regression.

    Statistics & Experimentscausal inferenceab testingvariance reductionregression
  • System DesignMediumModel answer
    Build a Natural-Language Image Search Service with Access Control

    Design a service that lets users find images from free-text descriptions, handling batch ingestion, joint embeddings, permission filtering, ranking, evaluation, updates, and deletions.

    System Designml-system-designmultimodal-embeddingsvector-searchreranking
  • System DesignMediumModel answer
    Design CI/CD Build Caching System

    Design a distributed build caching system for CI/CD pipelines, covering cache key generation, concurrent upload coordination, and tiered storage architecture.

    System Designsystem-designcachingdistributed-systemsobject-storage
  • System DesignMediumModel answer
    Explaining Disk Usage Discrepancies Between df and du

    Analyze why df and du report different disk space utilization on Linux systems and walk through a step-by-step troubleshooting process.

    System Designlinuxoperating-systemsstoragesre
  • Greedy & IntervalsMediumModel answer
    Pinpoint Bad Nodes with Disjoint Group Probes of Size Two or More

    Find exactly which cluster nodes are bad when the only probe is a group test that fails if any member is bad, parallel probes must be disjoint, and each probe needs at least two nodes.

    Greedy & Intervalsgroup-testingadaptive-algorithmsround-robin-schedulingidentifiability
  • Stacks & QueuesMediumModel answer
    Evaluate Arithmetic Expressions and Decode Nested Run-Length Strings

    Implement two production-ready string parsers: an arithmetic evaluator supporting basic operators and precedence, and a nested string expansion utility.

    Stacks & Queuesstackparsingstringsexpression-evaluation
  • Statistics & ExperimentsMediumModel answer
    Matching Test Errors to Classifier Metrics: FP, FN, Precision, Recall

    Link false-alarm and missed-detection errors in hypothesis tests to classifier metrics, explain why precision depends on prevalence, and judge which error hurts more in practice.

    Statistics & Experimentshypothesis-testingtype-i-errortype-ii-errorprecision-recall