KatInterview

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

Interview Practice Problems

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

6070
Problems
2251
Auto-graded
15
Topics
273
Added today

Showing 2041–2070 of 3819 results

  • BehavioralMediumModel answer
    Defending Technical Depth in a Project Walkthrough

    Present one project end to end, then defend its technical depth and explain how you aligned with partner teams and with your own engineers.

    Behavioralproject-deep-divetechnical-depthcross-functional-alignmentownership
  • Statistics & ExperimentsMediumModel answer
    Uniform Random Sampling and Histogram Percentile Calculation

    Generate uniformly distributed points in a square region and compute percentiles from binned frequency data using linear interpolation.

    Statistics & Experimentsprobabilitysamplinginterpolationpercentiles
  • Machine LearningHardModel answer
    Ultra-Low-Latency GBDT Inference for a Live Trading Pipeline

    Design an end-to-end strategy to cut a 1,000-tree gradient-boosted ensemble's inference time from 120 µs to under 5 µs p99 without changing any prediction.

    Machine Learninginference optimizationGBDTlow-latencySIMD
  • System DesignMediumModel answer
    Build a Lodging Booking Widget with Correct Pricing

    Design and implement a reservation widget: date/guest inputs, dynamic price breakdown, validation, disabled booking on invalid or sold-out stays, and a confirm dialog.

    System Designfrontendstate-managementpricingvalidation
  • BehavioralMediumModel answer
    Prepare structured responses to four core behavioral scenarios

    Deliver clear, impact-focused answers to four fundamental behavioral prompts: handling conflict, influencing peers, recovering from setbacks, and navigating constraints.

    Behavioralbehavioralleadershipcommunicationstar-method
  • BehavioralMediumModel answer
    Walk Through One Project You Led, End to End

    Deliver a structured 5–7 minute walkthrough of a single project: context, your ownership, design decisions, delivery, measured impact, challenges, and a real retrospective.

    Behavioralproject-walkthroughownershiptechnical-communicationsystem-design
  • Dynamic ProgrammingMediumModel answer
    Fewest Transfers to Clear Everyone's Net Balance

    Given payer/payee/amount triples, compute net balances and return an optimal (minimum-count) set of settlement transfers that zeroes everyone out.

    Dynamic Programmingbitmask-dpgreedysubset-sumaccounting
  • System DesignMediumModel answer
    Rate-Limiting Service with Token Buckets at Global Scale

    Design a distributed rate limiter that enforces per-user request quotas across multiple regions with low latency and no single point of failure.

    System Designrate-limitingredisdistributed-systemstoken-bucket
  • System DesignHardModel answer
    Build a Time-Series Observability Pipeline for a Large Fleet

    Design an end-to-end metrics collection and alerting system for tens of thousands of hosts, then go deep on cardinality control, storage layout, or alert evaluation.

    System Designmonitoringtime-seriescardinalitydistributed-systems
  • System DesignHardModel answer
    Design a Job Scheduler for a Distributed Rendering Cluster

    Design a distributed scheduling service that assigns variable-length rendering jobs to a heterogeneous GPU cluster while balancing priority tiers, resource fit, and fault tolerance.

    System Designschedulingdistributed-systemsgpuresource-management
  • System DesignHardModel answer
    Design a Real-Time Quiz Showdown with Buzzer Lockouts

    Design a multiplayer live quiz system where players race to buzz in, wrong answers trigger a timed lockout, and fairness holds across varying network conditions.

    System Designreal-timewebsocketsmatchmakinglatency
  • BehavioralMediumModel answer
    Walk Through a System You Owned from Concept to Production

    Explain how you drove a technical project through discovery, implementation, launch, monitoring, and incident response, clarifying your individual contributions.

    Behavioralownershiptechnical-leadershipproduction-systems
  • Statistics & ExperimentsMediumModel answer
    Deciding Whether Two Samples Share the Same Distribution

    Walk through univariate and multivariate methods for comparing two distributions, covering test selection, effect sizes, multiple-testing control, and sampling design.

    Statistics & Experimentshypothesis-testingtwo-sample-testsmultivariatesampling
  • BehavioralMediumModel answer
    Five Behavioral Stories: Conflict, Ambiguity, Failure, Influence, Partnership

    Practice a five-prompt behavioral sweep covering conflict, ambiguity, failure, influence without authority, and cross-functional delivery, with tight time discipline.

    Behavioralbehavioralstar-methodconflictambiguity
  • Data Structure DesignMediumModel answer
    Build a POS cart with live receipt printing and combo deals

    Design a point-of-sale cart that prints an itemized receipt on every tap and then extends to apply non-overlapping combo discounts after each update.

    Data Structure Designdata-structuressimulationgreedy
  • System DesignHardModel answer
    Build a Consistent Online Store with Cart and Payment Handling

    Design an online shopping system handling product discovery, shopping carts, order placement, inventory management, and payment processing with consistency guarantees.

    System Designe-commercedistributed-systemstransactionsidempotency
  • System DesignMediumModel answer
    Build a Batch Text Labeling Pipeline with CSV Input

    Parse an uploaded CSV of text records, classify each via an external ML client, and write a structured JSON results file with per-row error isolation.

    System Designpythonfile-processingerror-handlingexternal-api
  • BehavioralEasyModel answer
    Applying AI Tools in Professional Software Development

    Discuss how you would integrate generative AI into development workflows, covering productivity gains, risk boundaries, security practices, and team adoption strategy.

    Behavioralleadershiprisk-managementai-toolsteam-dynamics
  • BehavioralMediumModel answer
    Should a Bank Keep a Costly but Customer-Facing Channel?

    Decide whether to retain a high-cost service channel by moving beyond unit economics to customer lifetime value, segment needs, and regulatory constraints.

    Behavioralbusiness judgmentchannel strategylifetime valuetrade-offs
  • Statistics & ExperimentsMediumModel answer
    Diagnose Poor Search Quality for Named-Entity Queries

    Design a metrics framework to identify and fix relevance and safety failures when users search for well-known brand or entity names on a content platform.

    Statistics & Experimentssearch relevancemetricsexperimentationcontent safety
  • BehavioralMediumModel answer
    Craft a 90-second pitch for a senior product analytics role

    Deliver a structured, metric-driven introduction covering background, two quantifiable wins, cross-functional influence, company motivation, and a 90-day goal.

    Behavioralcommunicationself-presentationproduct-analyticssenior-level
  • System DesignMediumModel answer
    Build a Messaging Platform with Instant and Offline Delivery

    Design an instant messaging system supporting direct and group chats with real-time delivery, offline queuing, and cross-device history sync.

    System Designmessagingreal-timedistributed-systemsscalability
  • System DesignMediumModel answer
    Real-Time Leaderboard for a High-Traffic Content Platform

    Design a distributed service that tracks the most-viewed content items over a rolling one-hour window at 100K events/sec, serving ranked results with low latency.

    System Designstream-processingdistributed-systemsapproximation-algorithms
  • System DesignMediumModel answer
    Diagnosing Performance Issues in a Live Commerce Platform

    Assess user experience, identify weak product areas through metrics, and debug suspected issues in a livestream shopping application.

    System Designproduct-analyticsdebuggingmetricsfunnel-analysis
  • Stacks & QueuesMediumModel answer
    Group Deletion Stack and Boundary Path Collection

    Remove consecutive identical-character groups from a string and collect a binary tree's boundary nodes in a specific mirror order.

    Stacks & Queuesstackbinary-treestring-manipulationrun-length-encoding
  • Machine LearningMediumModel answer
    Video anomaly detection pipeline for real-time surveillance

    Design an ML system to identify threatening behaviors in live camera feeds, handling extreme class imbalance and deployment constraints.

    Machine Learningcomputer-visionreal-time-systemsrare-event-detectionml-system-design
  • System DesignHardModel answer
    Debug a Failing Django Film Catalog Filter API

    Fix defects in an existing Django REST API so that a suite of automated tests covering search, filtering, ordering, and error handling all pass.

    System Designdjangodebuggingrest-apiquerysets
  • System DesignHardModel answer
    Design a Usage-Based Billing System with Holds, Batches, and Reconciliation

    Design a billing platform that authorizes funds, captures final amounts in batches, reconciles against processor settlements, and guarantees no customer is ever charged twice.

    System Designpaymentsidempotencyreconciliationstate-machine
  • Statistics & ExperimentsHardModel answer
    Should We Open a New Distribution Hub? A Full Analytics Framework

    Design an end-to-end analytical case for a warehouse build-vs-lease decision: demand forecasting, NPV modeling, incrementality experiments, sensitivity analysis, and a stakeholder recommendation.

    Statistics & Experimentsdemand-forecastingfinancial-modelingexperimentationnetwork-optimization
  • Data Structure DesignMediumModel answer
    Rolling-Window Key-Value Store with Live Average

    Design a key-value store that expires entries older than a configurable time window and supports O(1) average-case get, put, and average queries.

    Data Structure Designhash-maplinked-listsliding-windowamortized-analysis