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 2071–2100 of 6091 results

  • System DesignHardModel answer
    Design a Collaborative LLM Prompt Workbench with Live Streaming

    Design a multi-tenant web tool where teams author prompts, run them on external LLMs with streamed output, version and compare results, and track cost, latency, and safety.

    System Designsystem-designstreamingmulti-tenancyidempotency
  • Heaps, Sorting & SearchMediumAuto-graded
    Determine the K-th Highest Score in an Unsorted Array

    Find the k-th largest value in an unsorted array of integers without fully sorting the input.

    Heaps, Sorting & Searcharrayssortingdivide-and-conquerquickselect
  • System DesignMediumModel answer
    Design an E-Commerce Search and Typeahead System

    Architect a low-latency prefix typeahead and full-catalog product search system capable of handling high traffic spikes and near real-time inventory updates.

    System Designsystem-designautocompletesearchtrie
  • Machine LearningMediumModel answer
    Leakage-Safe Binary Classifier Workflow: From EDA to Monitoring

    Design and implement an end-to-end binary classification workflow in Python, covering time-aware splits, imbalance, tuning, calibration, error analysis, explainability and production safeguards.

    Machine Learningclassificationtime-aware-validationclass-imbalancecalibration
  • Arrays & HashingEasyAuto-graded
    Generate Cartesian Product of Search Space Parameters

    Construct all explicit configurations from a dictionary mapping parameter names to lists of candidate values using Cartesian product generation.

    Arrays & Hashingcartesian-productgeneratorarraysdictionary-manipulation
  • Dynamic ProgrammingHardModel answer
    Identify Compound Words in a Dictionary

    Find all strings in a list that can be constructed by concatenating two or more smaller strings from the same list.

    Dynamic Programmingstringsdynamic-programmingtriehash-table
  • Machine LearningHardModel answer
    Architectural Comparison of Sequence Models and MPC Integration

    Detailed comparison of RNNs, LSTMs, Transformers, and Model Predictive Control, including mathematical formulations, structural trade-offs, and hybrid learning-control frameworks.

    Machine Learningdeep-learningtransformersmpcrobotics
  • StringsEasyAuto-graded
    Count Case-Sensitive Occurrences in a Text

    Count how many times a target character, or substring, appears in a text under case-sensitive, non-overlapping matching.

    Stringsstringscountingsubstringcase-sensitive
  • Machine LearningMediumModel answer
    Arrival-Time Prediction for a Ride-Share App: End-to-End ML Design

    Design a machine learning system that predicts driver pickup time and trip duration, covering labels, features, models, metrics, bias, noise, serving, monitoring, and post-launch experiments.

    Machine Learningeta-predictionspatiotemporalmodel-designcalibration
  • Arrays & HashingMediumAuto-graded
    Find Most Overlapping Pair of Sets

    Find the pair of set keys with the highest intersection size, using Jaccard similarity and lexicographical order as tie-breakers via an inverted index approach.

    Arrays & Hashinginverted-indexhash-tablearraysstring
  • SQL & DataMediumModel answer
    Shared-Document Analytics: Sources, Partners, and Country Rates

    Use deduplicated user-document pairs to analyze how collaborators arrive, who works most with a given user, and which country has the highest share of users who collaborate.

    SQL & Datasqlpandasself-joindeduplication
  • Trees & GraphsMediumAuto-graded
    Group Binary Tree Nodes into Vertical Columns

    Group nodes of a binary tree represented in array heap layout into vertical columns ordered from left to right.

    Trees & Graphstrees-graphsbreadth-first-searchbinary-treequeues
  • BehavioralMediumModel answer
    Explaining Past System Architecture Decisions and Engineering Trade-Offs

    Demonstrate technical leadership, system architecture experience, and problem-solving skills by deep-diving into a past project's engineering trade-offs and failures.

    Behavioralsystem designarchitectureleadershipbehavioral
  • Machine LearningMediumModel answer
    Targeting Strategy for a Streaming Show Launch Email Campaign

    Plan an end-to-end email targeting system for a new title release, covering cold start, causal uplift modeling, offline metrics, and online A/B testing.

    Machine Learninguplift-modelingrecommendation-systemsab-testingsystem-design
  • Trees & GraphsMediumAuto-graded
    Count Separate Land Masses in a Grid

    Evaluate grid graph connectivity by finding the number of distinct 4-directionally connected land components.

    Trees & Graphstrees-graphsdfs-bfsgrid
  • Statistics & ExperimentsMediumModel answer
    Designing A/B Experiments for Banner Ads and Group Stories

    Learn how to design A/B tests for ad monetization and social features, including metric selection, handling fat-finger clicks, and managing network interference.

    Statistics & Experimentsab-testingexperimentationmetricsnetwork-effects
  • Data Structure DesignMediumAuto-graded
    Least Recently Used Storage Simulation

    Simulate a fixed-capacity Least Recently Used (LRU) storage engine that processes lookup and insert operations in O(1) time.

    Data Structure Designdesign-dslinked-listsarrays
  • Greedy & IntervalsMediumAuto-graded
    Collapse Booked Time Slots into Disjoint Blocks

    Combine a list of [start, end] ranges so that any that overlap or touch become one range, using sorting and a single sweep.

    Greedy & Intervalsintervalssortinggreedyarrays
  • Data Structure DesignMediumModel answer
    Build Stateful Round-Robin and Consistent Hash Load Balancers

    Implement thread-safe Round-Robin and Consistent Hashing balancers supporting health checks and dynamic nodes, then analyze their performance.

    Data Structure Designload-balancerconsistent-hashinground-robindata-structure-design
  • System DesignEasyModel answer
    Design a User Profile Ingestion System: Batch vs. Streaming

    Design an ingestion and processing pipeline for JSON user profiles, comparing batch file arrivals against a real-time event streaming paradigm.

    System Designsystem designbatch processingevent streamingetl
  • Statistics & ExperimentsMediumModel answer
    Estimating Personalization Impact via AB Test Covariate Adjustment

    Analyze an A/B test on content recommendation by calculating the ATE, deriving robust 95% confidence intervals, and evaluating covariate adjustment techniques like Lin's regression.

    Statistics & Experimentscausal inferenceab testingvariance reductionregression
  • Arrays & HashingMediumAuto-graded
    Grid Editor: Flip Rows, Swap Rows, and Turn Clockwise

    Simulate a sequence of string commands (row reversal, row swap, 90-degree clockwise turn) on a rectangular grid whose shape changes after each turn.

    Arrays & Hashingmatrixsimulationstring-parsingrotation
  • System DesignMediumModel answer
    Build a Natural-Language Image Search Service with Access Control

    Design a service that lets users find images from free-text descriptions, handling batch ingestion, joint embeddings, permission filtering, ranking, evaluation, updates, and deletions.

    System Designml-system-designmultimodal-embeddingsvector-searchreranking
  • Heaps, Sorting & SearchMediumAuto-graded
    Find Frequent Elements with Custom Tie-Breaking

    Count item occurrences and retrieve the top k highest-frequency elements, sorting tied elements by value ascending.

    Heaps, Sorting & Searcharrayssortinghash-table
  • System DesignMediumModel answer
    Design CI/CD Build Caching System

    Design a distributed build caching system for CI/CD pipelines, covering cache key generation, concurrent upload coordination, and tiered storage architecture.

    System Designsystem-designcachingdistributed-systemsobject-storage
  • System DesignMediumModel answer
    Explaining Disk Usage Discrepancies Between df and du

    Analyze why df and du report different disk space utilization on Linux systems and walk through a step-by-step troubleshooting process.

    System Designlinuxoperating-systemsstoragesre
  • Greedy & IntervalsMediumModel answer
    Pinpoint Bad Nodes with Disjoint Group Probes of Size Two or More

    Find exactly which cluster nodes are bad when the only probe is a group test that fails if any member is bad, parallel probes must be disjoint, and each probe needs at least two nodes.

    Greedy & Intervalsgroup-testingadaptive-algorithmsround-robin-schedulingidentifiability
  • Stacks & QueuesMediumModel answer
    Evaluate Arithmetic Expressions and Decode Nested Run-Length Strings

    Implement two production-ready string parsers: an arithmetic evaluator supporting basic operators and precedence, and a nested string expansion utility.

    Stacks & Queuesstackparsingstringsexpression-evaluation
  • Arrays & HashingMediumAuto-graded
    Product of Two Mostly-Zero Grids

    Compute the product of two mostly-zero integer matrices by precomputing nonzero positions so that no work is spent on zero operands.

    Arrays & Hashingmatrixsparsesimulationhashing
  • Statistics & ExperimentsMediumModel answer
    Matching Test Errors to Classifier Metrics: FP, FN, Precision, Recall

    Link false-alarm and missed-detection errors in hypothesis tests to classifier metrics, explain why precision depends on prevalence, and judge which error hurts more in practice.

    Statistics & Experimentshypothesis-testingtype-i-errortype-ii-errorprecision-recall