KatInterview

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

Interview Practice Problems

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

6041
Problems
2237
Auto-graded
15
Topics
275
Added today

Showing 4741–4770 of 6041 results

  • Greedy & IntervalsMediumAuto-graded
    Consolidate Overlapping Time Ranges

    Tests whether a candidate can sort and scan a list of closed intervals to collapse all overlapping or touching ranges into a minimal merged set.

    Greedy & Intervalsintervalssortinggreedy
  • System DesignMediumModel answer
    Real-Time Metrics Dashboard Architecture

    Build a dashboard that shows time-series metrics with clear separation between data ingestion delay and query response time.

    System Designmonitoringtime-seriesdata-ingestionreal-time-systems
  • Math & Bit ManipulationMediumAuto-graded
    Count Subsequences With Uniform Letter Frequency

    Tests combinatorics, modular arithmetic, and frequency grouping by counting index-distinct subsequences where every included letter appears the same number of times.

    Math & Bit Manipulationcombinatoricsmodular arithmeticfrequency counting
  • System DesignMediumModel answer
    Design a Social Media Activity Feed at Scale

    Design the core feed delivery system for a social platform, focusing on how to balance write amplification against read latency for users with vastly different follower counts.

    System Designfeed generationfan-outcachingdistributed systems
  • BehavioralMediumModel answer
    Getting Nontechnical Stakeholders to Back an Engineering Investment

    Walk through how you translated a technical initiative into business terms, navigated skepticism, and verified real adoption with nontechnical stakeholders.

    Behavioralstakeholder managementtechnical communicationcross-functional influence
  • Statistics & ExperimentsMediumModel answer
    Evaluating Performance Benchmark Results for Regressions

    Determine if performance measurements indicate a real regression, known limitation, or normal noise through systematic validation and evidence-based criteria.

    Statistics & Experimentstestingperformancequality-assurancestatistical-analysis
  • Greedy & IntervalsMediumModel answer
    Peak Active Couriers: Sweep-Line with Per-Worker Deduplication

    Given delivery records with overlapping intervals per courier, find the maximum number of distinct couriers working simultaneously using a sweep-line algorithm.

    Greedy & Intervalssweep-lineintervalsdeduplicationsorting
  • BehavioralEasyModel answer
    Fostering Inclusion Through Action

    Discuss a concrete example where you identified and addressed barriers to inclusion, explaining your approach, the outcome, and lessons learned.

    Behavioralbehavioralleadershipcommunicationimpact
  • Machine LearningMediumModel answer
    Core ML and LLM Concepts for Production Systems

    Explain key machine learning and large language model concepts including metrics, model types, benchmarking, inference optimization, and deployment considerations.

    Machine Learningmachine-learningllmproductionevaluation
  • Statistics & ExperimentsMediumModel answer
    Diagnosing Revenue Growth Alongside Declining User Sentiment

    Ad revenue is climbing while user satisfaction drops; identify the root cause, validate metrics, form hypotheses, design experiments, and recommend trade-offs.

    Statistics & Experimentsmetricsproduct-analyticsexperimentationcausality
  • System DesignHardModel answer
    Real-Time Ranking Service for Competitive Gaming Platforms

    Build a backend that handles millions of score updates per second, returns a player's exact position plus surrounding ranks in milliseconds, and supports friend-only views.

    System Designleaderboardsscalabilityrankingreal-time-systems
  • Heaps, Sorting & SearchMediumAuto-graded
    Find K Closest Elements in Sorted Array

    Tests binary search on sorted arrays to locate a contiguous window of k elements with minimum distance to a target value.

    Heaps, Sorting & Searchbinary-searchtwo-pointerssliding-window
  • Statistics & ExperimentsMediumModel answer
    Evaluate a Geo-Social Feature Launch with Causal Rigor

    Design an experiment to measure whether a community-content feature drives meaningful engagement, accounting for geographic interference, opt-in bias, and clustering effects.

    Statistics & Experimentsexperimentationcausal inferencenetwork effectsmetric design
  • Data Structure DesignMediumAuto-graded
    Rate Limiter with Bucket Drain Simulation

    Tests ability to model a rate-limiting algorithm with time-based decay, capacity bounds, and precise edge-case handling.

    Data Structure Designrate-limitingsimulationstate-machine
  • BehavioralMediumModel answer
    Describing Your Approach to Product Quality and Adaptability

    Demonstrate how you maintain user experience standards, respond to shifting requirements, and align personal goals with organizational mission through concrete examples.

    Behavioralcommunicationproduct-thinkingadaptabilityuser-experience
  • System DesignMediumModel answer
    Rank Trending Content Across a Multi-Tenant Platform

    Design a low-latency system that returns the top-N pieces of content per workspace, ranked by a weighted engagement score, over rolling time windows.

    System Designstreamingaggregationcachingtime-windows
  • Arrays & HashingHardAuto-graded
    Find All Contiguous Segments with Target Total

    Tests prefix sum tracking with hash maps to efficiently count all contiguous subsequences that sum to a target value.

    Arrays & Hashingprefix-sumhash-maparray
  • Machine LearningMediumModel answer
    Building a Safety Layer for Medical Text Generation

    Design a system to detect and prevent fabricated information in AI-generated clinical summaries, addressing severe class imbalance in the detection model.

    Machine Learningllmclass-imbalancehealthcarerag
  • Machine LearningHardModel answer
    Month-by-Month Employee Departure Forecasting System

    Design an end-to-end ML system that estimates, for each active user, the probability of leaving their current employer in each of the next K months.

    Machine Learningsurvival-analysishazard-modelingfeature-engineeringleakage-prevention
  • Greedy & IntervalsMediumAuto-graded
    Minimum Classrooms to Schedule All Lectures

    Tests whether a candidate can reframe a resource-allocation problem as peak interval overlap and handle half-open boundary conditions correctly.

    Greedy & Intervalsintervalssweep-linegreedysorting
  • System DesignMediumModel answer
    Multi-Sensor Data Replay System for Autonomous Vehicle Scenarios

    Design a scalable system to store, index, and stream synchronized sensor recordings from autonomous vehicles, supporting variable-speed playback and metadata filtering.

    System Designstreamingdistributed-systemsdata-modelingcaching
  • BehavioralEasyModel answer
    Understanding Multi-Level Assessment Scoring and Result Access

    Explains how progressive online coding assessments compute scores across levels with partial credit, and how candidates access results afterward.

    Behavioralassessment-mechanicsprocess-knowledgeprofessional-communication
  • System DesignMediumModel answer
    Build a Wordle Clone Component in React

    Implement a 5-letter, 5-guess word puzzle in React with correct duplicate-letter tile scoring, virtual keyboard state, and clean game-over transitions.

    System Designreacttypescriptgame-logicstate-management
  • Stacks & QueuesMediumAuto-graded
    Compute Arithmetic Expression with Operator Precedence

    Tests parsing and evaluating mathematical expressions with proper operator precedence and parentheses using stack-based techniques.

    Stacks & Queuesstacksexpression-parsingoperator-precedence
  • Machine LearningMediumModel answer
    Bias-Variance Tradeoff and Attention Mechanisms

    Explain model generalization, learning curve diagnosis, regularization methods, and the computational mechanics of attention in sequence models.

    Machine Learningoverfittingregularizationtransformersattention
  • Data Structure DesignMediumModel answer
    Design a Shopping Cart with OOP: Catalog, Lines, and Totals

    Model a shopping cart in object-oriented code: add, update, and remove items, compute an exact total, and handle edge cases consistently.

    Data Structure Designobject-oriented designpythonmoney arithmetic
  • Data Structure DesignMediumAuto-graded
    Simulate a Cache with Recency-Based Eviction

    Tests data structure design by building an in-memory cache that removes the least recently accessed entry when full.

    Data Structure Designhash-maplinked-listcacheeviction-policy
  • Statistics & ExperimentsMediumModel answer
    Design an experiment for a priority dispatch feature

    Design metrics and a randomization strategy to test a paid priority-matching product in a two-sided rideshare marketplace.

    Statistics & Experimentsexperimentationmarketplacescausal-inferencemetrics
  • System DesignMediumModel answer
    Keyset Pagination Design for High-Volume Event Logs

    Design a cursor-paginated API for a large append-only event ledger that avoids offset pitfalls and stays stable under concurrent inserts.

    System Designpaginationapi-designdatabase-indexingscalability
  • Data Structure DesignMediumAuto-graded
    Count-Weighted Random Sampling with Dynamic Insertions and Removals

    Design a multiset supporting constant-time insert, remove, and random selection where each element's pick probability is proportional to its frequency.

    Data Structure Designhash-maparraysrandomizationdata-structure-design