KatInterview

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

Interview Practice Problems

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

6112
Problems
2264
Auto-graded
15
Topics
275
Added today

Showing 3511–3540 of 6112 results

  • BehavioralHardModel answer
    Own Your Work and Defend Your AI Principles

    Demonstrate technical ownership through project deep-dives, articulate a reasoned position on AI safety, and show you can navigate values-based disagreements with colleagues.

    BehavioralleadershipAI safetyconflict resolutiontrade-offs
  • Data Structure DesignHardModel answer
    Live Spreadsheet with Eager Caching and Cycle Guards

    Build a spreadsheet engine where every write pre-computes all downstream values so reads are O(1) cache lookups, and circular definitions are rejected atomically.

    Data Structure Designgraphstopological-sortcycle-detectiondependency-tracking
  • System DesignMediumModel answer
    Real-Time IoT Device Monitoring System

    Build a scalable backend to track health status for millions of IoT devices sending periodic check-ins and quickly identify unresponsive units.

    System Designdistributed-systemsreal-timeiotscalability
  • BehavioralMediumModel answer
    Lessons, Pushback, Impact, and Ethics: Four PM Reflections

    Practice four core behavioral prompts — failure, dissent, success, and data ethics — that reveal how a PM thinks, leads, and makes judgment calls.

    Behavioralfailure & learninginfluencing without authoritymeasuring impactdata ethics
  • System DesignMediumModel answer
    Async API for Large-Scale Directory Traversal

    Build a non-blocking API and worker system to crawl millions of files across cloud storage accounts with progress tracking and fault tolerance.

    System Designasync-jobsdistributed-systemsscalability
  • Statistics & ExperimentsHardModel answer
    Diagnose a Sudden Revenue Decline

    Walk through a structured investigation of an unexpected revenue drop, from metric validation to funnel decomposition, segmentation, and causal reasoning.

    Statistics & Experimentsanalyticsmetricsroot-cause analysisfunnel
  • Statistics & ExperimentsHardModel answer
    Two-Sample Z-Test: Compute Minimum Experiment Size

    Given historical metric data and test parameters, derive the smallest total sample size that meets a specified significance level and statistical power.

    Statistics & Experimentsstatisticsa/b testinghypothesis testingpower analysis
  • Data Structure DesignMediumAuto-graded
    Sliding Window Event Log with Time-Based Expiration

    Design a data structure that tracks timestamped events and supports queries over a moving time window with automatic expiration of old entries.

    Data Structure Designsliding-windowqueuestime-seriesdata-structures
  • BehavioralMediumModel answer
    Recount a Technical Decision You'd Reverse Today

    Walk through one significant engineering choice you made, why it was reasonable at the time, what you'd do instead now, and how the lesson changed later behavior.

    Behavioralreflectionownershiptradeoffstechnical-judgment
  • Statistics & ExperimentsMediumModel answer
    OLS Derivation, CLT Approximation, and Kelly Betting

    Derive the OLS slope estimator, apply the CLT to a Bernoulli sample mean, and find the Kelly-optimal bet fraction for a biased coin.

    Statistics & Experimentslinear-regressioncentral-limit-theoremkelly-criterionprobability
  • BehavioralMediumModel answer
    Walk Through a Project You Led End to End

    Describe your most impactful project — goal, your role, design trade-offs, measured impact, a real failure, and what you'd redo — as a structured, quantified narrative.

    Behavioralproject-deep-diveownershiptrade-offsmetrics
  • BehavioralMediumModel answer
    Telling a Difficult-Situation Story That Holds Up Under Follow-Ups

    Build one well-structured story about your hardest work challenge that answers both "hardest challenge" and "difficult situation" prompts, with a backup ready.

    Behavioralbehavioralstorytellingsenior-engineercommunication
  • System DesignMediumModel answer
    Design a Task Execution Platform with Timing Guarantees

    Build a distributed system to run scheduled and recurring tasks at scale with latency SLAs and full execution traceability.

    System Designdistributed-systemsschedulingreliabilityobservability
  • System DesignMediumModel answer
    Scaling a High-Throughput Financial Ledger: Architecture Trade-offs

    Design a transaction ledger handling 50k TPS with ACID guarantees, choosing between monolith and microservices and between sharding and replication.

    System Designdistributed-systemsdatabase-scalingconsistencymicroservices
  • StringsMediumAuto-graded
    Minimum Window Containing All Required Characters

    Tests sliding window technique with character frequency tracking to find the smallest substring that satisfies multiplicity constraints.

    Stringssliding-windowtwo-pointershash-map
  • System DesignMediumModel answer
    Sharded Full-Text Search for Multi-Tenant Tables

    Design a near-real-time, sharded full-text search layer over large structured tables with sub-200ms reads and petabyte scale.

    System Designsearchshardingcdcconsistency
  • StringsMediumModel answer
    Config-Driven CSV Validator with Name Overlap Check

    Write a configurable validator that flags missing fields, length violations, banned words, and low name-word overlap across CSV vendor rows.

    Stringscsv-parsingvalidationregextext-normalization
  • Machine LearningHardModel answer
    Uncover What Drives Listing Conversions in a Ride-Share Marketplace

    Design an end-to-end analysis to find which listing, host, and market features causally drive booking conversion, then validate findings with experiments.

    Machine Learningcausal inferenceproduct analyticsfeature importanceexperimentation
  • Statistics & ExperimentsMediumModel answer
    Walk Through Your Model's Assumptions and How You Tested Them

    Explain the key assumptions behind a past modeling project, how you validated each one, and how you kept your pipeline free of leakage and overfitting.

    Statistics & Experimentsexperimentationmodel-validationdata-leakageoverfitting
  • BehavioralMediumModel answer
    Navigating Blocked Dependencies and Ownership Ambiguity

    Demonstrate your ability to unblock stalled cross-functional work and resolve unclear ownership boundaries while preserving collaborative relationships.

    Behavioralcollaborationstakeholder-managementconflict-resolutionleadership
  • StringsMediumAuto-graded
    Parse and Validate Business Registration CSV Records

    Tests multi-rule sequential validation over CSV rows: field presence, tax ID format normalization, and fuzzy owner name matching via token overlap.

    Stringsstringsparsingvalidation
  • SQL & DataMediumAuto-graded
    Per-Group Top-3 Distinct Values with Tie Handling

    Tests whether you can isolate the three highest distinct numeric values within each group and return all records that match those values, preserving correct sort order.

    SQL & Datagroupingdense-ranksorting
  • Statistics & ExperimentsMediumModel answer
    Should You Run a Below-Cost Seasonal Promotion?

    Evaluate a money-losing product promotion by defining the right metrics, estimating true incrementality, and surfacing strategic justifications with supporting evidence.

    Statistics & Experimentsexperiment designincrementalityretail analyticsmetric definition
  • Data Structure DesignMediumModel answer
    Build an In-Memory Key-Value Store with Savepoints

    Design a transactional key-value store supporting nested transactions, named savepoints, and full rollback using an undo-log approach.

    Data Structure Designtransactionsundo-logkey-value-storenested-transactions
  • System DesignHardModel answer
    Design a Content Aggregator and Disposable Inbox Service

    Design two systems: a multi-publisher article feed with ranking and client-adaptive APIs, and a temporary email service that generates human-looking addresses with guaranteed uniqueness at scale.

    System Designapi-designcachingdistributed-systemsemail
  • System DesignHardModel answer
    Real-Time Web Communication and Network Protocol Fundamentals

    Evaluate trade-offs between real-time communication approaches and demonstrate understanding of network protocol layers and modern transport mechanisms.

    System Designnetworkingprotocolsreal-timearchitecture
  • BehavioralMediumModel answer
    Delivering Under Pressure While Juggling Competing Priorities

    Describe a situation where a hard deadline and multiple simultaneous demands forced you to triage work, communicate cuts, and stay effective under stress.

    Behavioralprioritizationstakeholder-communicationtime-managementstress-resilience
  • Trees & GraphsMediumAuto-graded
    Balance Root-to-Leaf Path Sums in Binary Tree

    Tests bottom-up tree traversal with greedy balancing, recognizing that shared ancestors minimize total increments across multiple paths.

    Trees & Graphsbinary-treegreedypost-order-traversaltree-dp
  • Data Structure DesignMediumAuto-graded
    Aggregate Sales Data with Running and Grand Totals

    Tests dictionary aggregation, deterministic ordering, and building cumulative totals along two dimensions from grouped records.

    Data Structure Designaggregationdictionariesdata-processing
  • System DesignMediumModel answer
    In-Memory Versioned Store with Snapshot and Compaction

    Build an in-memory key-value store that stages changes, creates atomic snapshots, supports historical queries, and limits retention to K versions.

    System Designversioningstoragesnapshotsgarbage-collection