KatInterview

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

Interview Practice Problems

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

5981
Problems
2215
Auto-graded
15
Topics
272
Added today

Showing 5701–5730 of 5981 results

  • System DesignHardModel answer
    Design a Video Streaming Service with ABR and Cross-Device Resume

    Design a large-scale video platform supporting catalog browsing, adaptive-bitrate playback across devices, cross-device resume, and content ingestion.

    System Designstreamingvideocdntranscoding
  • Statistics & ExperimentsMediumModel answer
    Covariate Adjustment for Variance Reduction in A/B Tests

    Apply regression-based variance reduction when a pre-experiment metric correlates with your outcome, and explain the conditions under which this technique remains valid.

    Statistics & Experimentsexperimentationvariance-reductionregression-adjustmentstatistical-power
  • BehavioralHardModel answer
    Managing Conflict with Senior Stakeholders

    Describe navigating a tense interaction with a senior leader, extracting requirements, documenting decisions, and learning from process failures.

    Behavioralstakeholder-managementcommunicationconflict-resolution
  • Stacks & QueuesHardAuto-graded
    Evaluate a Ternary-Chained Arithmetic Expression

    Tests expression evaluation using a monotonic/operator-precedence stack to correctly parse and compute a string containing +, -, *, /, parentheses, and nested ternary operators.

    Stacks & Queuesstacksexpression evaluationparsingmonotonic stack
  • BehavioralHardModel answer
    Describing Work That Energizes and Drains You

    Explain which types of problems and environments bring out your best work as a data scientist, and which you find less motivating.

    Behavioralself-awarenessrole-fitmotivation
  • SQL & DataMediumAuto-graded
    Ranking Actors by Film Count in a Unified Object Database

    Tests filtering credits by role, deduplicating person-movie pairs, validating object types in a shared ID space, and applying a deterministic tie-breaking policy.

    SQL & Datadata-aggregationfilteringdeduplication
  • Arrays & HashingMediumAuto-graded
    Retrieve Minimum and Mode from Array

    Tests efficient computation of two simple aggregate statistics using optimal data structures and complexity analysis.

    Arrays & Hashinghash-mapscountingcomplexity-analysis
  • SQL & DataMediumAuto-graded
    Build a Deterministic Top-10 Leaderboard with Tie-Breaking

    Tests your ability to produce a fixed-size ranked list when scores contain ties, using a stable secondary sort key.

    SQL & Datarankingsortingtie-breakingleaderboard
  • System DesignHardModel answer
    Design a Time-Series Observability Platform

    Design a platform that ingests, stores, and queries millions of tagged metric streams per second with tiered retention, cardinality guardrails, and sub-second alerting.

    System Designtime-seriesmetricscardinalitystorage
  • BehavioralMediumModel answer
    Navigate Misaligned Goals Across Engineering Teams

    Resolve a conflict between two engineering teams with competing priorities under deadline pressure through structured negotiation and incentive design.

    Behavioralleadershipstakeholder-managementconflict-resolution
  • Data Structure DesignMediumModel answer
    Account Ledger with Reservation Expiry and Merging

    Design a banking ledger that supports deposits, time-limited transfer reservations, acceptance of reserved transfers, and merging accounts with their pending operations.

    Data Structure Designstate-machinereservation-systemunion-findexpiry-handling
  • Trees & GraphsMediumModel answer
    Build a Same-Domain Web Page Crawler

    Write a crawler that visits all pages reachable from a start URL, staying within the same domain, avoiding cycles and duplicate fetches.

    Trees & Graphsgraph-traversalbfsdfsurl-parsing
  • Math & Bit ManipulationMediumAuto-graded
    Count Pairs Whose XOR Has Exactly K Set Bits

    Tests the ability to combine bit counting (popcount) with efficient pair enumeration to find pairs in an array whose XOR contains exactly K set bits.

    Math & Bit Manipulationbit manipulationnumber theorycombinatorics
  • BehavioralMediumModel answer
    Engineering Judgment in AI Safety and Behavioral Leadership

    Discuss your perspective on AI safety and its implications for software work, then answer behavioral questions demonstrating ownership and judgment.

    Behavioralleadershipethicsdecision-making
  • Machine LearningMediumModel answer
    Design a Batching Service for GPU Model Inference

    Build an online inference system that groups compatible GPU requests into batches to maximize throughput while meeting latency SLAs.

    Machine Learningml-systemsbatchingdistributed-systemsgpu
  • Data Structure DesignMediumModel answer
    Wind Field Tracker for Hot Air Balloons

    Build a system that tracks balloon altitudes, computes spatially-varying wind exposure from multiple sources, and identifies stable balloons above a threshold.

    Data Structure Designevent-simulationspatial-aggregationtime-based-statedata-structures
  • Heaps, Sorting & SearchMediumAuto-graded
    Rank Tournament Leaders by Multi-Level Criteria

    Tests sorting and aggregation skills by computing tournament standings with points, goal difference, and goals scored as tie-breakers.

    Heaps, Sorting & Searchsortingsimulationaggregation
  • Heaps, Sorting & SearchMediumAuto-graded
    Locate the Transition Point in a Monotonic Boolean Array

    Identify the earliest index where a boolean array transitions from False to True, testing binary search on boundaries and edge cases.

    Heaps, Sorting & Searchbinary-searcharraysboundaries
  • SQL & DataMediumAuto-graded
    Filter Hosts by Property Count, Rating, and Review Recency

    Tests multi-table aggregation with date-windowed filtering, distinct counting, and host-level qualification across inventory, ratings, and coverage.

    SQL & Dataaggregationmulti-tabledate-filteringconditional-logic
  • Trees & GraphsMediumAuto-graded
    Maximum Path Gain in a Weighted Tree

    Tests tree DP on a weighted tree to find the maximum sum of node values along any root-to-leaf path, using depth-first traversal and subproblem combination.

    Trees & Graphstreesdynamic programmingdepth-first search
  • Statistics & ExperimentsMediumModel answer
    Segment-Level Profit Analysis for Feature Rollout Decision

    Calculate profit impact across customer segments, derive break-even thresholds, and recommend a launch strategy balancing short-term economics with lifetime value.

    Statistics & Experimentsexperimentationmetricsbusiness-casesegmentation
  • Arrays & HashingMediumAuto-graded
    Validate Partially Filled Sudoku Grid

    Tests ability to check constraint satisfaction across multiple overlapping groups using efficient duplicate detection.

    Arrays & Hashinghash-setconstraint-checkingmatrix
  • System DesignMediumModel answer
    Backend Architecture for High-Traffic Online Retail Platform

    Design a scalable backend for an online retail platform that handles concurrent purchases, prevents overselling, and serves millions of browsing users.

    System Designscalabilitydistributed-systemsdatabasesconsistency
  • Data Structure DesignMediumAuto-graded
    Incremental Config Value Store with Dependency Tracking

    Tests ability to build a stateful key-value store that resolves integer expressions with named references, propagates updates through a dependency graph, and rejects cycles.

    Data Structure Designgraphtopological-sortdesign
  • Math & Bit ManipulationEasyAuto-graded
    Count Subsets With Product Equal to a Power of Two

    Tests whether candidates can combine combinatorics (counting subsets) with the insight that a product is a power of two iff every element is itself a power of two.

    Math & Bit Manipulationcombinatoricsbit manipulationmath
  • Machine LearningMediumModel answer
    Attention Mechanisms, Autoregressive vs Masked Models, and Metrics

    Explain attention in modern neural architectures, contrast autoregressive and bidirectional pretraining approaches, and discuss precision-recall tradeoffs.

    Machine Learningdeep-learningnlpevaluation-metrics
  • Heaps, Sorting & SearchMediumAuto-graded
    Sort Competitors by Vote Position Counts

    Tests multi-criteria sorting with position-based vote counting and lexicographic tiebreaking.

    Heaps, Sorting & Searchsortingcustom-comparatorcounting
  • BehavioralMediumModel answer
    Demonstrating Leadership and Values in Technical Interviews

    Prepare for multi-part behavioral rounds that evaluate mission alignment, conflict resolution, ethical judgment, and project ownership through structured storytelling.

    Behavioralleadershipcommunicationproject-managementethics
  • System DesignHardModel answer
    In-Memory Document-Tag Store with Thread-Safe Concurrency

    Design an in-memory library that manages documents and tags, supports multi-tag intersection queries, and handles concurrent reads and writes safely.

    System Designconcurrencyindexingapi-design
  • Statistics & ExperimentsMediumModel answer
    Designing an Experiment to Measure Search Quality

    Design an A/B test for a search feature change, define metrics to track button performance, and explain how to assess result quality.

    Statistics & Experimentsexperimentationmetricssearchhypothesis-testing