KatInterview

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

Interview Practice Problems

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

5997
Problems
2221
Auto-graded
15
Topics
270
Added today

Showing 5461–5490 of 5997 results

  • Arrays & HashingMediumAuto-graded
    Find Dictionary with Extreme Field Value

    Tests your ability to scan a collection of sparse dictionaries and retrieve the one with the minimum or maximum value for a specified field.

    Arrays & Hashingdictionariesfilteringiteration
  • Statistics & ExperimentsMediumModel answer
    Designing an Experiment Metrics Framework for a New Feature

    Design a complete metrics framework to evaluate a new product feature, including success metrics, guardrails, cannibalization analysis, and multiple-testing controls.

    Statistics & Experimentsexperimentationmetricshypothesis-testingproduct-analytics
  • Math & Bit ManipulationMediumAuto-graded
    Positive Divisors of N² via Prime Factorization of N

    Tests whether a candidate can reduce a unit-fraction equation to a divisor-counting problem using algebraic factoring and number theory.

    Math & Bit Manipulationnumber-theorydivisorsprime-factorization
  • SQL & DataMediumModel answer
    Aggregate Session Time by Category Over a Rolling Week

    Calculate the percentage of total usage time for each application category across the most recent seven days of user sessions.

    SQL & Datasqldata-analysisaggregationjoins
  • Heaps, Sorting & SearchMediumAuto-graded
    Find Leftmost Position Meeting Threshold

    Tests understanding of lower-bound binary search with correct boundary handling and duplicate treatment.

    Heaps, Sorting & Searchbinary-searchboundariesduplicates
  • BehavioralHardModel answer
    Describe a Difficult Situation You Resolved

    A behavioral interview question asking you to walk through a problem you encountered, your approach to solving it, the outcome, and what you learned.

    Behavioralbehavioralleadershipproblem-solving
  • Arrays & HashingMediumAuto-graded
    Find Optimal Discount from Multiple Promotion Types

    Tests ability to compare multiple discount strategies with different application rules and select the best outcome while handling edge cases like empty inputs and clamping.

    Arrays & Hashingsimulationgreedymath
  • Arrays & HashingMediumAuto-graded
    Build Alternating Color Bands for a Trail Map API

    Tests iteration logic for splitting a sequence into overlapping chunks with alternating properties

    Arrays & Hashingiterationchunkingapi-design
  • Statistics & ExperimentsMediumModel answer
    Comparing Two Classifiers with a Proportion Test

    Test whether a higher observed positive rate is statistically significant, starting from basic probability rules and building to a two-proportion z-test.

    Statistics & Experimentshypothesis-testingprobabilityz-testproportions
  • Dynamic ProgrammingHardAuto-graded
    Best Profit from One or Two Stock Transactions

    Tests dynamic programming and greedy strategies to compute optimal profit from array-based buy/sell scheduling with transaction limits.

    Dynamic Programmingarraysgreedystate-machineoptimization
  • BehavioralMediumModel answer
    Leading Through Organizational Pushback

    Walk through a project where you delivered measurable impact despite stakeholder resistance, explaining your data-driven approach, trade-off decisions, and verification of adoption.

    Behavioralleadershipstakeholder-managementmetricsdecision-making
  • System DesignMediumModel answer
    Real-Time Frequency Ranking System

    Build a distributed system that tracks item frequencies from a high-throughput stream and serves the most popular items with low latency.

    System Designstreamingdistributed-systemsapproximation-algorithmscache
  • System DesignHardModel answer
    Control Signal Interface Across Power and Clock Boundaries

    Design a robust interface to propagate a control bit between two independently-powered, potentially asynchronous SoC domains.

    System Designhardwarepower-managementclock-domain-crossingsoc-design
  • System DesignMediumModel answer
    Client for migrating records between REST APIs with OAuth

    Write a CLI tool that authenticates via OAuth 2.0, fetches paginated data from one API, transforms it, and posts it to another with checksums and idempotency.

    System Designoauthapi-integrationdata-migrationidempotency
  • System DesignMediumModel answer
    Building Observability for Sub-5-Minute Error Budgets

    Design a monitoring and reliability system that protects a 99.99% availability target for a high-traffic SaaS platform handling 100k requests/second.

    System DesignobservabilityreliabilitySLI-SLOalerting
  • Machine LearningMediumModel answer
    Validating Predictive Signals in Quantitative Finance

    Evaluate cross-sectional equity signals using correlation metrics, detect temporal data leakage, and design validation frameworks that prevent overfitting.

    Machine Learningquantitative-financetime-seriesvalidationoverfitting
  • Statistics & ExperimentsMediumModel answer
    Normal Distribution Theory and Practical Limitations

    Explain the mathematical properties of normal distributions and diagnose why they fail for real sensor data with heavy tails and multiple regimes.

    Statistics & Experimentsprobabilitydistributionsstatistical-testinganomaly-detection
  • Machine LearningHardModel answer
    Dimensionality Reduction: PCA vs Autoencoders in Sparse Data

    Contrast PCA and autoencoder approaches when features far outnumber samples, considering training stability, manifold complexity, and evaluation rigor.

    Machine Learningdimensionality-reductionpcaautoencoderscurse-of-dimensionality
  • System DesignMediumModel answer
    Analytics Platform for Page Traffic and User Conversion

    Build a metrics pipeline that tracks popular pages and calculates signup conversion rates with clear event semantics and late-arrival handling.

    System Designanalyticsstreamingdata-pipelinemetrics
  • Dynamic ProgrammingMediumAuto-graded
    Optimize Work Schedule with Limited Day Swaps

    Tests dynamic programming with state tracking to maximize earnings from daily pay and streak bonuses while converting limited off-days to work-days.

    Dynamic Programmingdynamic-programmingstate-machineoptimization
  • BehavioralMediumModel answer
    Handling Ambiguous Analysis Under Time Constraints

    Demonstrate how you navigate unclear requirements in quantitative work when stakeholders want fast execution without extensive exploration.

    Behavioralleadershipcommunicationproblem-solvingdecision-making
  • BehavioralHardModel answer
    Build a Responsive Square-Cell Grid in SwiftUI

    Construct a three-column scrollable grid where each cell maintains a 1:1 aspect ratio and responds to screen size changes, with navigation to a detail screen.

    Behavioraliosswiftuimobile-uilayout
  • Data Structure DesignMediumAuto-graded
    Reverse Trie for Ending Pattern Queries

    Tests understanding of tries and the insight that suffix matching becomes prefix matching when strings are reversed.

    Data Structure Designtriestring-matchingdata-structures
  • Data Structure DesignMediumAuto-graded
    In-Memory Store with Nested Transaction Support

    Tests your ability to implement layered state management with nested scopes, tombstone deletion tracking, and atomic commit/rollback semantics.

    Data Structure Designhash-tablestackstate-management
  • Math & Bit ManipulationHardAuto-graded
    Minimum Perfect Squares to Sum to Target

    Tests understanding of number theory and optimal algorithms for decomposing integers into sums of perfect squares.

    Math & Bit Manipulationnumber-theorymathoptimization
  • System DesignHardModel answer
    Build a Stock Trading Application Backend

    Design the architecture for a consumer stock trading app handling order execution, account management, real-time market data, and settlement.

    System Designtrading-systemsfinancial-servicesdistributed-systemsreal-time
  • System DesignMediumModel answer
    Event Seat Reservation System with Timed Locks

    Design a high-traffic event ticketing platform with temporary seat reservations, automatic expiration, and zero overselling under concurrent access.

    System Designdistributed-systemsconcurrencyconsistencyscalability
  • Machine LearningHardModel answer
    Build an End-to-End User Purchase Prediction System

    Design a complete ML pipeline to predict which users will buy after receiving a promotional message, handling causality, cold starts, and production deployment.

    Machine Learningpropensity-modelingcausal-inferenceproduction-mlcalibration
  • System DesignMediumModel answer
    Design a Multi-Locale String Delivery System

    Design a system that serves translated strings to clients worldwide, handling locale resolution, variables, plurals, live updates, fallback, and offline support.

    System Designlocalizationinternationalizationcontent deliverycaching
  • SQL & DataMediumModel answer
    Analyzing User Activity and Engagement Patterns with SQL

    Write SQL queries to analyze user engagement, including identifying inactive users, calculating monthly aggregates, segmenting by usage frequency, and tracking retention.

    SQL & Datasqljoinswindow-functionsaggregation