KatInterview

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

Interview Practice Problems

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

6091
Problems
2258
Auto-graded
15
Topics
279
Added today

Showing 3901–3930 of 6091 results

  • BehavioralMediumModel answer
    Deep Dive: Explaining a Complex Technical Implementation

    Walk through the design, trade-offs, and implementation of the most technically challenging component from a project you've worked on.

    Behavioraltechnical-depthdesign-decisionssystem-complexity
  • Machine LearningHardModel answer
    Build a production spam filter for email

    Design a complete ML system to classify incoming email as spam or legitimate, covering labeling, features, models, serving, metrics, and adversarial defenses.

    Machine Learningml-system-designclassificationproduction-mlanti-abuse
  • Data Structure DesignMediumModel answer
    Build a Type-Aware Key-Value Store from First Principles

    Design a hash map that supports keys and values of arbitrary types, covering hashing contracts, equality semantics, collision resolution, and memory ownership.

    Data Structure Designhash-maptype-erasurecollision-resolutionmemory-management
  • Arrays & HashingMediumAuto-graded
    Transform a Sorted Array with a Quadratic

    Evaluate a quadratic expression at every element of a sorted array and emit the results in ascending order in linear time.

    Arrays & Hashingtwo-pointerssortingmathmonotonic
  • BehavioralHardModel answer
    Evaluate a Research-Driven Organization's Technical Direction

    Assess an engineering org's technical philosophy, critique a recent decision with trade-offs, and connect your skills to their core challenges.

    Behavioralleadershipcritical-thinkingmission-alignment
  • System DesignMediumModel answer
    Build a Flight Booking Chat Agent with LLM Tool Calling

    Extend a Python starter script into a terminal chat agent that uses LLM function calling to search flights, register a passenger, and confirm a booking via a three-endpoint REST API.

    System DesignLLMtool-callingREST APIPython
  • BehavioralHardModel answer
    Navigating a Head-On Conflict Between Ad Revenue and Retention

    Walk through a real decision where monetization and engagement metrics pulled in opposite directions, with pre-set guardrails, experiment design, and quantified outcomes.

    Behavioralmetricsexperimentationstakeholder-alignmentproduct-sense
  • System DesignHardModel answer
    Distributed Transposition of a Terabyte-Scale Dense Matrix

    Design a fault-tolerant distributed pipeline that transposes a multi-terabyte float matrix using tiled partitioning, idempotent workers, and verifiable completion tracking.

    System Designdistributed-systemsobject-storagefault-tolerancebatch-processing
  • BehavioralMediumModel answer
    Walk Me Through Your Background and Why This Role

    Structure a compelling 10–15 minute behavioral opener: a crisp self-introduction, a technical project deep dive with trade-offs, and a specific motivation pitch.

    Behavioralself-introductionproject deep divemotivationcommunication
  • StringsEasyAuto-graded
    Cluster Words by Letter Inventory

    Tests whether you can use a canonical character-frequency key and a hash map to partition a list of strings into anagram groups in linear time.

    Stringshash-mapstringsanagrams
  • Statistics & ExperimentsMediumModel answer
    Comparing Two Models on Shared Test Data

    Apply statistical tests to determine whether two classifiers differ significantly when evaluated on the same labeled dataset, covering hypothesis testing, exact methods, confidence intervals, and multiple comparisons.

    Statistics & Experimentshypothesis-testingpaired-comparisonscontingency-tablesmultiple-testing
  • StringsMediumModel answer
    CSV Transaction Parser with Validation and Error Handling

    Design a pipeline that parses CSV transaction records, normalizes fields, validates data integrity, and segregates malformed entries.

    Stringsdata-validationparsingerror-handling
  • Statistics & ExperimentsMediumModel answer
    Selecting the Top-Performing Sensor Calibration Batch

    Design a statistically rigorous approach to rank five manufacturing batches using three binary pass/fail calibration checks per unit.

    Statistics & Experimentshypothesis-testingmultiple-comparisonsbinary-outcomesexperimental-design
  • Machine LearningHardModel answer
    Real-Time Transaction Risk Scoring System Design

    Design an end-to-end ML system that scores payment transactions in real time and decides whether to approve, block, challenge, or escalate them.

    Machine Learningfraud detectionfeature engineeringimbalanced learningonline serving
  • Machine LearningHardModel answer
    Build Causal Attention, a KV Cache, and Grouped-Query Attention

    Implement causal multi-head attention from scratch, add a KV cache for step-by-step decoding, then extend it to grouped-query attention where query heads share KV heads.

    Machine Learningtransformersattentiondeep-learning
  • System DesignMediumModel answer
    Build a Task Scheduler That Grows from Startup to 100x Scale

    Design a job scheduling system supporting one-time and recurring tasks, retries, and observability, then evolve it to handle 100x traffic growth.

    System Designdistributed-systemsschedulingfault-tolerancescalability
  • Statistics & ExperimentsMediumModel answer
    Bayesian Beta-Binomial Smoothing and Concept Drift Adaptation

    Derive the conjugate posterior update for a click-rate model, explain shrinkage vs MLE, contrast credible and confidence intervals, and adapt the model when the data distribution shifts.

    Statistics & Experimentsbayesian-inferenceconjugate-priorsconcept-driftcredible-intervals
  • System DesignHardModel answer
    Design a Crash-Safe High-Throughput Append Log

    Design an embedded append-only log writer that handles thousands of concurrent producers, batches writes efficiently, and recovers cleanly from crashes.

    System Designwrite-ahead logconcurrencydurabilitygroup commit
  • BehavioralMediumModel answer
    Career Story and Logistics Round for an ML Engineer Role

    Walk through your motivation, resume chronology, transition reasons, work authorization and comp expectations, then ask the interviewer good questions.

    Behavioralhr-screencareer-narrativecompensationwork-authorization
  • Statistics & ExperimentsMediumModel answer
    Design a Pilot Rollout for an Accelerated Payout Product

    Design a risk-aware targeting model, experiment framework, success metrics, and ROI formula for rolling out an instant settlement feature to 10% of small merchants.

    Statistics & Experimentsexperiment-designproduct-metricsrisk-modelingsegmentation
  • BehavioralEasyModel answer
    Navigate Team Conflict and Keep Engineers Motivated

    Demonstrate leadership by describing how you resolved a real technical conflict and what concrete practices you use to sustain team morale under pressure.

    Behavioralconflict-resolutionteam-leadershipmotivationtech-lead
  • Arrays & HashingMediumModel answer
    Longest Streak of Distinct Viewing History

    Find the longest contiguous subsequence in a viewing history array where no show appears more than once (case-insensitive).

    Arrays & Hashingsliding-windowhash-maptwo-pointers
  • System DesignMediumModel answer
    Database Indexes: Read/Write Trade-offs and Query Tuning

    Explain how relational indexes work, why they help reads but hurt writes, and walk through a systematic process for diagnosing and fixing a slow SQL query.

    System Designdatabasessqlperformanceindexing
  • Trees & GraphsMediumModel answer
    Nearest Depot and Peak-Load Routing on a Grid

    Given a grid with depot cells, find shortest paths from query locations to any depot, then extend to pick the depot maximizing a distance-penalized load score.

    Trees & GraphsBFSDijkstramulti-sourcegrid
  • System DesignMediumModel answer
    Design a Seat Reservation System for Live Events

    Design a distributed ticketing platform that handles high search traffic, prevents duplicate seat bookings, and survives payment service failures.

    System Designconcurrencydistributed-systemsconsistencydatabases
  • Data Structure DesignMediumModel answer
    Generate Unique Character Profiles with Attribute Rules

    Build a generator that creates N character profiles from trait pools, enforcing no-duplicates, uniqueness, and dependency rules between attributes.

    Data Structure Designbacktrackingconstraint-satisfactionalgorithms
  • Dynamic ProgrammingHardModel answer
    DAG Schedule Analysis and Windowed Checkpoint DP

    Compute critical-path latency and peak concurrency for a task DAG, then find minimum-cost checkpoint placement under a sliding-window coverage constraint.

    Dynamic Programmingdagtopological-sortsliding-windowdynamic-programming
  • Data Structure DesignMediumAuto-graded
    Parcel Attribute Store with TTL and Prefix Queries

    Simulate a timestamped key-value attribute store with overwrite, conditional update, sorted prefix listing, and per-attribute expiry.

    Data Structure Designhash-mapsimulationsortingexpiry
  • System DesignMediumModel answer
    Designing Access Control for Social Feed Visibility

    Design a system that enforces per-post audience rules across feed and permalink reads at high QPS while staying correct under friendship and privacy-setting changes.

    System Designaccess-controlcachingsocial-graphfeed-system
  • BehavioralMediumModel answer
    Walk Through a Platform Project You Led

    Deliver a structured 6-minute story of a platform or infra project you owned, covering users, architecture, reliability, delivery and measurable impact.

    Behavioralplatform-engineeringstorytellingreliabilityci-cd