KatInterview

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

Interview Practice Problems

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

6059
Problems
2244
Auto-graded
15
Topics
273
Added today

Showing 2221–2250 of 3815 results

  • Machine LearningHardModel answer
    Normalization Strategies: Batch vs Layer Normalization

    Explain how batch and layer normalization differ in computation, statistics, parameters, and inference behavior, plus debugging approaches.

    Machine Learningnormalizationdeep-learningtraininginference
  • System DesignHardModel answer
    Design the Infrastructure Behind a Recommendation Feed

    Design the serving and storage layers for a recommendation service, covering API shape, data flow, storage schemas, caching, and how batch training coexists with live traffic.

    System Designrecommendation-systemsdistributed-systemscachingkafka
  • System DesignMediumModel answer
    Fix Summary Metrics That Ignore Active Filters

    Diagnose and fix an API endpoint where row results respect filters but the computed summary still reflects the full unfiltered dataset.

    System Designdebuggingdata-lineageapi-designtesting
  • BehavioralMediumModel answer
    Walk Me Through a Metric You Created That Shifted a Real Decision

    Tell a specific story about a metric you designed from scratch, validated, and got adopted — and show exactly what changed because of it.

    Behavioralmetricsdata-driven-decisionsstakeholder-influence
  • Machine LearningMediumModel answer
    LLM Internals: Architecture, Fine-Tuning, and Evaluation

    Explain decoder-only Transformer internals, compare positional encoding schemes, choose a PEFT strategy, and design an evaluation pipeline for a production LLM.

    Machine Learningllmtransformersfine-tuningpeft
  • System DesignMediumModel answer
    Hierarchical Multi-Tenant Rate Limiter Design

    Design a distributed limiter that enforces global, regional, and per-endpoint quotas at 500K RPS with sub-10ms overhead and graceful degradation.

    System Designrate-limitingdistributed-systemssystem-designredis
  • Machine LearningMediumModel answer
    Offline Evaluation Framework for a Video Safety Classifier

    Design an end-to-end offline evaluation pipeline for a binary content classifier, covering metrics, label collection, calibration, threshold choice, and fairness slicing.

    Machine Learningclassificationprecision-recallfairnessclass-imbalance
  • System DesignMediumModel answer
    Building a Fault-Tolerant Money Transfer Service

    Design a backend service that processes monetary transfers reliably despite retries, crashes, network failures, and ambiguous external responses.

    System Designdistributed-systemsfault-toleranceidempotencytransactions
  • BehavioralMediumModel answer
    Build a Hiking App: Product Design and Launch Strategy

    Design a mobile hiking app from user segmentation through MVP features, metrics, and go-to-market, defending trade-offs in safety, content, and growth.

    Behavioralproduct-designmetricsgo-to-market
  • StringsMediumModel answer
    Find Optimal Single Digit Exchange to Maximize Value

    Swap at most two digits in a non-negative integer to achieve the largest possible result.

    Stringsgreedystring-manipulationoptimization
  • System DesignHardModel answer
    Multi-File HTTP API Code Review: Methods, Payloads, and Validation

    Audit a multi-file HTTP API to find and fix an incorrect HTTP method, a payload contract mismatch, and missing input validation — then report everything within an hour.

    System Designapi-designcode-reviewinput-validationhttp
  • Data Structure DesignMediumModel answer
    Build a Multi-Key Task Queue with Ordering and Concurrency Control

    Create a thread-safe task scheduler that runs tasks sequentially per key while respecting a global worker limit and capacity bound.

    Data Structure Designconcurrencythreadingqueuesynchronization
  • Statistics & ExperimentsMediumModel answer
    A/B Testing a Marketplace Feature End to End

    Design a two-sided marketplace experiment, diagnose a sample ratio mismatch, reconcile conflicting metrics into a value view, and decide launch vs. iterate.

    Statistics & Experimentsab-testingexperiment-designsrmmarketplace-metrics
  • Trees & GraphsMediumModel answer
    Threaded Comment Feed: Filtering, Nesting, and Persistent Sort

    Transform a flat array of comments into a sorted, nested, filterable tree while persisting the user's sort preference across sessions.

    Trees & Graphstree-constructiondfslocalStoragefrontend-data
  • SQL & DataMediumModel answer
    Retail Spend Analytics: Aggregation and Regional Rankings

    Write two SQL queries against a payment dataset to find top vendors globally and per region using aggregation, joins, and window-based dense ranking.

    SQL & Datawindow-functionsaggregationCTEranking
  • Data Structure DesignMediumModel answer
    Multiset with O(1) Insert, Delete, and Uniform Random Sampling

    Build a collection supporting duplicates with constant-time insertion, deletion, and uniform random selection from all stored occurrences.

    Data Structure Designdata-structureshash-tablesrandomization
  • System DesignMediumModel answer
    Design a Cloud-Based Development Workspace Service

    Build a system that provisions on-demand containerized development environments with browser-based editing, terminal access, and port forwarding.

    System Designcloud-infrastructurecontainersstate-management
  • BehavioralMediumModel answer
    Tell Me About a Time You Led Through Resistance or Ambiguity

    Demonstrate leadership, ownership, and measurable impact by crafting structured behavioral stories around influence, resilience, and tackling hard problems.

    BehavioralSTAR methodleadershipownershipinfluence
  • Statistics & ExperimentsHardModel answer
    Staggered Rollout Causal Analysis: Designing a Robust Estimation

    Design a staggered-adoption DiD for a phased 50-region rollout that stays valid under heterogeneous, dynamic treatment effects, from estimator choice to inference.

    Statistics & Experimentscausal-inferencedifference-in-differencespanel-dataevent-study
  • SQL & DataMediumModel answer
    Daily Driver Earnings with Time-Based Bonuses

    Calculate a courier's total earnings per day from delivery records, applying distance rates, minimum guarantees, and optional surge multipliers for high-demand hours.

    SQL & Datadata-processingbusiness-logictime-windows
  • Data Structure DesignMediumModel answer
    Two-Tier API Rate Limiter with a Sliding Window

    Design a thread-safe rate limiter that enforces both a per-endpoint quota and a shared global quota using a rolling time window.

    Data Structure Designrate-limitingconcurrencysliding-windowthread-safety
  • System DesignHardModel answer
    Building a High-Throughput Payment Processing Platform

    Design a payment platform supporting wallet transfers, card transactions, refunds, and chargebacks with strong consistency, exactly-once semantics, and audit compliance.

    System Designpaymentsdistributed-systemsconsistencyfinancial-systems
  • System DesignMediumModel answer
    Design the Backend for a Real-Time Multiplayer Board Game

    Design a backend that manages live game state, enforces turn-based rules, and delivers move updates in real time across thousands of concurrent sessions.

    System Designwebsocketsconcurrencyreal-timegame-state
  • Data Structure DesignMediumModel answer
    Build a Reference-Counted Shared Ownership Pointer in C++

    Implement a thread-safe shared ownership smart pointer class template from scratch, covering copy/move semantics, atomic reference counting, and correct destruction.

    Data Structure Designc++memory-managementconcurrency
  • Statistics & ExperimentsMediumModel answer
    Measuring the Impact of Sorting Inboxes by Unread Count

    Design a data-driven evaluation and A/B experiment to decide whether reordering a multi-account switcher by unread message count improves user engagement.

    Statistics & Experimentsexperiment-designmetric-designcausal-inference
  • SQL & DataMediumModel answer
    Social Network Feed Analytics with SQL Aggregation

    Build SQL queries to analyze user engagement patterns across friend and non-friend content, handling temporal aggregation and interaction scoring.

    SQL & Datasqldata-aggregationwindow-functionsjoins
  • Statistics & ExperimentsMediumModel answer
    Investigate a Sudden Drop in Email-Driven Job Applications

    Walk through the email-to-application funnel to separate a tracking bug, a delivery failure, and a relevance problem from each other.

    Statistics & Experimentsproduct analyticsfunnel analysisroot cause analysisrecommendation systems
  • Statistics & ExperimentsMediumModel answer
    Designing and Analyzing a Free-Trial Growth Experiment

    Design metrics, choose analysis populations, identify pitfalls, and make a business decision for an A/B test offering a one-month free trial.

    Statistics & Experimentsab-testingcausal-inferencemetricsexperimentation
  • Statistics & ExperimentsMediumModel answer
    Designing Experiments Across a Three-Sided Delivery Marketplace

    Reason through A/B design, randomization units, and root-cause diagnosis for delivery-marketplace programs, promotion systems, and a spike in cancellations.

    Statistics & Experimentsexperimentationcausal-inferencemarketplacemetrics
  • System DesignEasyModel answer
    Streaming Text Labeling Pipeline with Retry Logic

    Build a function that reads a CSV of text records, labels each one via an external API with retries, and writes ordered JSON Lines output with per-row failure handling.

    System Designpythonconcurrencydata-pipelineerror-handling