KatInterview

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

Interview Practice Problems

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

6000
Problems
2221
Auto-graded
15
Topics
272
Added today

Showing 5401–5430 of 6000 results

  • System DesignHardModel answer
    Build a Payment Processing System for Short-Term Campaigns

    Design a scalable payment platform handling donation submissions with async processing, idempotency guarantees, and burst traffic support.

    System Designpaymentsasync-processingdistributed-systemsidempotency
  • Machine LearningHardModel answer
    Build a Production ML Training Pipeline for Time-Series Models

    Design a complete ML training system for forecasting, covering data handling, training infrastructure, serving, and monitoring with emphasis on temporal correctness.

    Machine Learningml-systemstime-seriesmlopstraining-infrastructure
  • System DesignHardModel answer
    Log-Structured Storage: Replication, Recovery, and MVCC

    Describe how log-structured databases decouple compute from storage, use quorum-based replication, achieve fast recovery, and handle multi-version concurrency control.

    System Designdistributed-systemsdatabasesstorage-enginesreplication
  • Math & Bit ManipulationEasyAuto-graded
    Count Animals from Legs and Population Ratios

    Tests setting up and solving a system of linear equations with fixed ratios between variables.

    Math & Bit Manipulationalgebralinear-equationsconstraint-satisfaction
  • SQL & DataMediumAuto-graded
    Deduplicate and Reconcile Customer Records

    Tests the ability to clean a list of messy customer records by deduplicating on a canonical key, resolving field conflicts with explicit priority rules, and returning a sorted, normalized result.

    SQL & Datadata cleaningdeduplicationaggregation
  • Greedy & IntervalsEasyAuto-graded
    Locate Shared Free Time Slots Across Multiple Schedules

    Tests interval merging to identify time windows where all participants are simultaneously unoccupied for a minimum duration.

    Greedy & Intervalsintervalsmergingscheduling
  • Arrays & HashingMediumAuto-graded
    Adjust P-Values for Multiple Testing Corrections

    Tests implementation of Bonferroni and Holm-Bonferroni procedures to control family-wise error rate when conducting multiple hypothesis tests.

    Arrays & Hashingstatisticshypothesis-testingmultiple-testingalgorithms
  • Trees & GraphsMediumAuto-graded
    Compute Minimum Distances to Multiple Destinations

    Tests understanding of single-source shortest path algorithms on weighted directed graphs with positive edge weights.

    Trees & Graphsshortest-pathdijkstragraph-traversalpriority-queue
  • SQL & DataMediumAuto-graded
    Compute Running Department Salary Budget with Resets

    Tests the ability to implement window-style running totals that accumulate within groups and reset at group boundaries, mimicking SQL's SUM() OVER (PARTITION BY ... ORDER BY ...).

    SQL & Datawindow functionsrunning totalsdata processing
  • Statistics & ExperimentsMediumModel answer
    Mean vs. Median: Picking the Right Profit Summary Stat

    Decide which central tendency metric best captures per-trade profitability in a live trading system, and justify the choice given skew, outliers, and stream constraints.

    Statistics & Experimentsstatisticsprobabilitytradingoutliers
  • System DesignMediumModel answer
    Message Status Tracking in a Chat Application

    Build the infrastructure for tracking and displaying message state (sent, delivered, read) in a messaging platform serving millions of users.

    System Designdistributed-systemsreal-timescalability
  • Trees & GraphsMediumAuto-graded
    Island Detection and Letter Selection Counting

    Tests graph traversal for connected components in a binary grid and combinatorial counting with multiset constraints.

    Trees & Graphsgraph-traversalbfsconnected-componentscombinatorics
  • BehavioralMediumModel answer
    Three-Part Culture Interview: Project, Failure, and AI Usage

    Answer three behavioral questions about a successful project, a failed project, and your practical use of AI tools, showing ownership, reflection, and judgment.

    Behavioralbehavioralleadershipcommunicationai-tools
  • Data Structure DesignMediumAuto-graded
    Ring-Buffer Event Counter with Time Windows

    Tests whether a candidate can implement a fixed-memory sliding-window counter using a circular array of timestamped buckets with O(1) writes and O(W) reads.

    Data Structure Designsliding-windowring-bufferdata-structure-design
  • Trees & GraphsMediumAuto-graded
    Maximum Independent Set Weight on a Tree

    Tests tree DP by computing the maximum total weight of a node subset where no two chosen nodes share an edge (weighted tree independent set).

    Trees & Graphstreesdynamic programminggraph traversal
  • Statistics & ExperimentsMediumModel answer
    Designing Metrics for a Nostalgia Content Feature

    Design an evaluation framework for a feature that resurfaces users' old content, considering incrementality, quality guardrails, and anti-spam controls.

    Statistics & Experimentsmetricsproduct-analyticsexperimentationengagement
  • Data Structure DesignMediumAuto-graded
    Schema-Free Record Store with Column Indexing

    Tests ability to design an in-memory key-value store with flexible schemas, column-based retrieval, and multi-field filtering logic.

    Data Structure Designhash-tablesindexingdata-structures
  • Data Structure DesignMediumModel answer
    Restaurant Query and Order Analytics System

    Design data structures and algorithms to query restaurants by price and distance, then compute order statistics and rankings over time windows.

    Data Structure Designdata-structuresalgorithmstime-seriesheap
  • SQL & DataMediumModel answer
    Improve a Pandas Pipeline: Validation, Testing, and Packaging

    Fix defects in a CSV processing script, refactor for testability with type hints and input checks, write unit tests, and package with Conda.

    SQL & Datapandasrefactoringtestingdata-validation
  • System DesignMediumModel answer
    Build a Real-Time Error Aggregation Service with Top-K Tracking

    Design a distributed system that ingests exception logs from microservices, groups similar errors, and maintains a live top-10 most common exceptions dashboard.

    System Designdistributed-systemsstreamingdata-pipelineaggregation
  • Arrays & HashingMediumAuto-graded
    Combine Two Ordered Lists

    Tests the ability to implement the classic two-pointer merge algorithm in linear time.

    Arrays & Hashingtwo-pointerssortingmerge-algorithm
  • Machine LearningHardModel answer
    Hourly Demand Forecasting for Shared Mobility Systems

    Build a model to forecast hourly demand at individual stations in a bike-sharing network, handling time-series structure, censored observations, and overfitting risks.

    Machine Learningtime-seriesfeature-engineeringoverfittingdemand-forecasting
  • SQL & DataMediumModel answer
    Design and Query a Retail Order Database

    Build a PostgreSQL schema for orders, write insert statements, compute revenue aggregates with outer joins, filter recent purchases, and update coupon fields.

    SQL & Datasqlschema-designaggregationjoins
  • Trees & GraphsMediumAuto-graded
    Cell Formula Evaluator with Cycle Detection

    Build a mini spreadsheet engine that evaluates formulas, detects circular dependencies, and handles dynamic updates.

    Trees & Graphsgraphsdfsrecursionmemoization
  • BehavioralHardModel answer
    Describing Your Technical Background and Recent Work

    Prepare to explain your career trajectory, technical interests, and a recent project in detail during a conversation with a hiring manager.

    Behavioralcommunicationtechnical-depthcareer-narrative
  • BehavioralMediumModel answer
    Debug and Secure Shell Command Patterns

    Diagnose failure modes in two Unix shell patterns and rewrite them with proper error handling, security practices, and stream management.

    Behavioralunixshelldebuggingsecurity
  • Machine LearningMediumModel answer
    Build a Document-Grounded Q&A Assistant for One Domain

    Design an enterprise conversational system that answers questions from a curated knowledge base with citations, handles multi-turn dialogue, and escalates when uncertain.

    Machine Learningragnlpconversational-aiinformation-retrieval
  • Math & Bit ManipulationMediumAuto-graded
    Find Non-Overlapping String Pairs by Letter Sets

    Evaluates efficient character set representation using bit manipulation and frequency-based combinatorial counting.

    Math & Bit Manipulationbit-manipulationarraysstringshashing
  • System DesignMediumModel answer
    Relational Schema for Multi-Tenant Permission System

    Design a normalized database schema supporting users, roles, permissions, role inheritance, and both global and resource-scoped access control.

    System Designdatabase-designauthorizationnormalizationschema-design
  • Dynamic ProgrammingMediumAuto-graded
    Find Lexicographically Smallest Expression to Match Target

    Tests interval dynamic programming to build fully parenthesized expressions using all numbers in order with +, -, * operators to reach a target value.

    Dynamic Programmingdynamic-programmingrecursionstrings