KatInterview

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

Interview Practice Problems

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

6013
Problems
2228
Auto-graded
15
Topics
276
Added today

Showing 5221–5250 of 6013 results

  • Arrays & HashingHardAuto-graded
    Group Activity Logs into Time-Based Sessions

    Tests time-series grouping, datetime arithmetic, gap-based segmentation, and aggregation with distinct counts.

    Arrays & Hashingtime-seriesgroupingdatetimeaggregation
  • Data Structure DesignMediumModel answer
    Lottery Bucket with Constant-Time Operations and Duplicates

    Build a data structure supporting O(1) add, remove, and uniform random selection where duplicate entries are treated as separate items.

    Data Structure Designhash-tablearrayrandomizationduplicates
  • System DesignMediumModel answer
    Build a Pipeline to Ingest and Process Video Conference Recordings

    Design a system that automatically captures video conference recordings from a third-party platform, transforms them into transcripts and analytics, and serves results reliably at scale.

    System Designdistributed-systemsdata-pipelinerate-limitingidempotency
  • SQL & DataMediumModel answer
    Event Stream Analytics: Sessions, Funnels, and Segment Performance

    Process user activity logs to build sessions, compute conversion metrics by segment, construct a deduplicated funnel, and identify high-performing segments with confidence intervals.

    SQL & Datapandasdata-analysissessionizationmetrics
  • Machine LearningMediumModel answer
    ML Opportunities in a Task Fulfillment Platform

    Design ML systems for a platform where customers create tasks and workers complete them with proof: identify opportunities across the workflow and detail the most impactful.

    Machine Learningml-system-designprioritizationevaluationrisk-mitigation
  • Machine LearningHardModel answer
    Diagnosing and Fixing Stalled Optimization in Deep Networks

    Identify why gradient descent halts at high loss and apply targeted fixes for saddles, poor conditioning, vanishing gradients, or true minima.

    Machine Learningoptimizationdeep-learningdebugginggradient-descent
  • System DesignHardModel answer
    Design a High-Throughput Event Aggregation System

    Build a distributed system for counting events by user, device, and region with real-time aggregation, deduplication, and time-windowed queries.

    System Designdistributed-systemsstream-processingscalabilitydata-aggregation
  • Statistics & ExperimentsMediumModel answer
    Measuring Success of a Quick-Reply Feature in Messaging

    Design metrics and an experiment to evaluate a suggestion-based reply feature that offers users one-tap responses in chat conversations.

    Statistics & Experimentsexperimentationmetricsproduct-analytics
  • Statistics & ExperimentsMediumModel answer
    Interpret a Confidence Interval for a New Feature's Retention Lift

    Given a 95% CI for a retention lift from an A/B test, decide whether the result is actionable and explain what the interval does and does not tell you.

    Statistics & Experimentsstatisticsconfidence intervalsA/B testinginference
  • BehavioralMediumModel answer
    Managing Competing Priorities Under Heavy Workload

    Describe your framework for deciding what to work on when facing many simultaneous tasks, supported by a concrete example from your experience.

    Behavioralprioritizationtime-managementstakeholder-communicationtrade-offs
  • Machine LearningHardModel answer
    Bootstrapping a Labeled Dataset from Scratch

    Design a complete pipeline to generate high-quality labeled training data when starting with zero labels for a machine learning task.

    Machine Learningdata-collectionlabel-qualityweak-supervisionhuman-labeling
  • System DesignMediumModel answer
    Profiling and Optimizing GPU Workload Performance

    Identify bottlenecks in a GPU application using profiling tools, then select and validate a parallelization approach to improve end-to-end performance.

    System Designgpuperformanceprofilingparallelization
  • System DesignMediumModel answer
    Caching vs. Index Optimization for High-Traffic Services

    Evaluate when to add an in-memory cache versus tuning database indexes for a high-throughput service experiencing read latency spikes.

    System Designcachingdatabasesperformancearchitecture
  • Data Structure DesignMediumModel answer
    Hierarchical Task Tracker: OO Domain Model & Service Layer

    Design and implement an object-oriented model for a nested task manager with status propagation, recursive deletion, and attribute-based filtering.

    Data Structure Designobject-oriented designtree traversalAPI designcomposite pattern
  • Heaps, Sorting & SearchMediumAuto-graded
    Find Path with Highest Bottleneck Value in Grid

    Tests combining priority-queue graph traversal with bottleneck optimization to find the path whose minimum cell value is maximized.

    Heaps, Sorting & Searchgraph-traversaldijkstrabinary-searchunion-find
  • Data Structure DesignMediumModel answer
    Dense-Index Data Structure Code Review

    Review a structure storing items under contiguous integer keys with O(1) random selection and removal while preserving index density.

    Data Structure Designcode-reviewdata-structuresrandomizationcomplexity-analysis
  • Data Structure DesignMediumModel answer
    Greedy Card Selection with Dynamic Deck State

    Simulate a threshold-based card selection strategy that accounts for a shrinking deck, tracking which cards remain available after each decision.

    Data Structure Designfenwick-treegreedysimulationbinary-indexed-tree
  • BehavioralMediumModel answer
    Demonstrating Influence, Values Alignment, and Resilience

    Prepare structured responses showing cross-functional influence, authentic value alignment, and recovery from project failures with concrete outcomes.

    Behavioralleadershipcommunicationproblem-solving
  • Trees & GraphsMediumAuto-graded
    Collect Binary Tree Node Values in Left-Root-Right Order

    Tests binary tree traversal using an explicit stack to visit nodes in left-root-right sequence from a level-order serialized input.

    Trees & Graphsbinary-treetraversalstackdeserialization
  • System DesignHardModel answer
    Design a Tag-Based Pub/Sub Message Broker

    Design a message queue where each message carries multiple topic tags and consumers receive only messages whose tags overlap their subscription set.

    System Designmessage-queuepub-subbitmasksystem-design
  • BehavioralEasyModel answer
    Walk Through a Technical Project You Led

    Describe a technical project you owned, covering problem framing, data work, methods, evaluation, deployment, impact, and lessons learned.

    Behavioralbehavioralproject-ownershipimpact
  • Heaps, Sorting & SearchMediumAuto-graded
    Running Median with Power-of-Two Bucket Tracking

    Tests two-heap streaming median maintenance combined with exact integer floor-log₂ bucketing to place each median into its enclosing power-of-two interval.

    Heaps, Sorting & Searchheapsmedianbit-manipulation
  • Statistics & ExperimentsMediumModel answer
    Designing an Experiment to Test a Mobile Search Bar Relocation

    Design a complete A/B test for relocating a search interface element in a mobile mapping application, including metrics, power analysis, and interpretation.

    Statistics & Experimentsa-b-testingexperimentationmetricscausal-inference
  • Data Structure DesignEasyAuto-graded
    Track User Votes with Deduplication

    Tests ability to maintain stateful vote tracking with idempotent operations and bounded history retrieval

    Data Structure Designhash-tablestate-managementdeduplication
  • Arrays & HashingMediumAuto-graded
    Subarrays with Odd Zero Frequency

    Tests understanding of prefix parity tracking and combinatorial counting to efficiently solve subarray problems.

    Arrays & Hashingprefix-sumtwo-pointersmath
  • BehavioralEasyModel answer
    Taking Action Outside Your Lane Without Stepping on Toes

    Show how you spotted a problem beyond your role, took ownership without alienating the responsible team, and left an improvement that outlasted your involvement.

    Behavioralownershipinitiativecross-team collaborationstakeholder management
  • Statistics & ExperimentsMediumModel answer
    Designing Success Metrics for a New Feed Feature

    Define metrics, design an experiment, and evaluate trade-offs for launching a multi-image swipeable card feature in a social content platform.

    Statistics & Experimentsexperimentationmetricsproduct-analytics
  • System DesignMediumModel answer
    Design an Edge Device Management Feature for Enterprise IoT

    Design a new feature for enterprise teams managing large fleets of edge devices, covering target user, core problem, MVP scope, metrics, and risks.

    System Designproduct designIoTedge computingenterprise
  • Trees & GraphsMediumAuto-graded
    Filter Users by Active Connection Threshold

    Tests graph maintenance with dynamic edge insertion and deletion, proper handling of duplicates and missing edges, and final degree counting.

    Trees & Graphsgraphshash-tablesimulation
  • Statistics & ExperimentsMediumModel answer
    Sealed Cash Box: Expected Value and Information Asymmetry

    Determine fair pricing for a sealed box containing random cash under various information conditions and competitive scenarios.

    Statistics & Experimentsexpected-valuegame-theoryadverse-selectiondecision-making