KatInterview

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

Interview Practice Problems

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

6117
Problems
2267
Auto-graded
15
Topics
272
Added today

Showing 2551–2580 of 6117 results

  • Trees & GraphsMediumAuto-graded
    Depth-Scaled Total of a Nested Integer Structure

    Traverse an arbitrarily nested list of integers and add up each value multiplied by how deeply it is nested, testing DFS/BFS traversal of recursive structures.

    Trees & Graphsdfsbfsnested-listsrecursion
  • BehavioralHardModel answer
    Evaluating a Big Tech Bid for a Robot-Vacuum Maker

    Decide whether Google should buy iRobot, the maker of Roomba, by weighing strategic fit, data value, rivals, financials and regulatory risk, then commit to a recommendation.

    Behavioralproduct-strategyacquisitioncase-studygo-no-go
  • BehavioralMediumModel answer
    Two Stories: Guiding a Group and Seeing a Problem Through

    Prepare two distinct, specific stories from your own work: one where you guided others to a shared outcome, and one where you took full responsibility for a problem until it was resolved.

    Behavioralbehavioralleadershipownershipstorytelling
  • BehavioralEasyModel answer
    Owning a Slipping Deliverable and the Cost of Late Staffing

    A behavioral question on how you respond when your own task will miss its date, why adding people late often slows delivery, and how you handle work that is never completed as assigned.

    Behavioralbehavioralownershipescalationestimation
  • Arrays & HashingMediumAuto-graded
    Merge Sensor Readings into Qualifying State Runs

    Group consecutive identical-state readings into runs, then keep only runs whose last-minus-first timestamp span meets a minimum threshold.

    Arrays & Hashingrun-lengthsingle-passsimulationgrouping
  • BehavioralEasyModel answer
    Partnering and Aligning Stakeholders as a Frontend Tech Lead

    Prepare structured, evidence-backed stories on cross-functional teamwork, resolving disagreements, balancing competing priorities, and driving change without formal authority.

    Behavioralbehavioralleadershipstakeholder-managementconflict-resolution
  • System DesignEasyModel answer
    Design a Scalable Text Paste Service (Pastebin Clone)

    Design a text sharing system that accepts raw text or code snippets and generates short, durable URLs with customizable TTLs under high read concurrency.

    System Designsystem-designdistributed-systemsapi-designdatabase-design
  • Data Structure DesignMediumModel answer
    Build an In-Memory Hierarchical File System with CRUD Support

    Design and implement an in-memory key-value store structured as a file system tree supporting create, set, get, and cascade delete operations with path validation.

    Data Structure Designdesign-dstrees-graphsstrings
  • Data Structure DesignMediumAuto-graded
    Simulate a Bounded Recency-Evicting Key-Value Store

    Replay a batch of get/put commands against a fixed-capacity store that discards its least recently used key on overflow, with O(1) average cost per command.

    Data Structure Designlru-cachehash-maplinked-listsimulation
  • Machine LearningHardModel answer
    Design an End-to-End Video Recommendation Platform

    Architect an end-to-end video recommendation system covering objective setting, matrix factorization baselines, multi-stage retrieval/ranking, feature engineering, and evaluation strategies.

    Machine Learningsystem-designrecommendation-systemsmatrix-factorizationmulti-stage-ranking
  • Machine LearningMediumModel answer
    Cutting Serving Cost and Latency of a Fine-Tuned Transformer Classifier

    Plan how to make a fine-tuned BERT-style text model faster and cheaper to serve, across model, runtime and request-path changes, while proving accuracy has not dropped.

    Machine Learningbertinference-optimizationquantizationdistillation
  • Data Structure DesignHardModel answer
    Per-User Rolling Quota Gate with Concurrent Access

    Design a thread-safe class that caps how many requests each user may make in any trailing time interval, avoiding the burst problem of fixed windows, with sub-linear cost per check.

    Data Structure Designrate-limitersliding-windowdequeconcurrency
  • System DesignMediumModel answer
    Cross-Venue Arbitrage Detector for a Million Quotes a Second

    Design an in-process, lock-free engine that tracks the best bid and ask across up to 16 venues for 10,000 instruments and flags crossed markets within microseconds.

    System Designlow-latencylock-freespsc-ring-buffermarket-data
  • System DesignMediumModel answer
    Debugging Non-Functional Kubernetes Pods: A Systematic Diagnostic Framework

    Outline a structured troubleshooting approach for diagnosing and resolving broken Kubernetes pods, detailing state transitions, kubectl commands, diagnostic paths, and mitigation techniques.

    System Designkubernetesdevopstroubleshootingsystem-design
  • Data Structure DesignEasyAuto-graded
    Bunk Allocation by Preferred Room Size

    Match students to rooms by hard size preference in input order, respecting capacity, keeping partially filled rooms, and reporting students who could not be placed.

    Data Structure Designqueuessimulationhash-mapgreedy
  • Statistics & ExperimentsHardModel answer
    Measuring a Notification Rollout in a Social Trip-Planning App

    Pick a primary metric and guardrails for a new notification feature, then design a randomized experiment that stays valid when users' shared itineraries leak effects between groups.

    Statistics & Experimentsab-testinginterferencecluster-randomizationguardrail-metrics
  • Dynamic ProgrammingMediumAuto-graded
    Maximum Disjoint Triples Summing to 15

    Find the most disjoint three-card groups that each sum to 15, using memoized search over value counts because greedy choices can block better groupings.

    Dynamic Programmingmemoizationrecursioncombinatoricsstate-compression
  • Dynamic ProgrammingHardAuto-graded
    Best Profit from a Capped Number of Round-Trip Trades

    Maximize profit from daily share prices using at most k non-overlapping buy-then-sell trades, testing state-based dynamic programming and handling a trade limit that never binds.

    Dynamic Programmingdynamic-programmingarraysstock-tradingstate-machine
  • Data Structure DesignHardModel answer
    Escalation Counters and Level Changes in a Review Pipeline

    Design a cached repeat-alert counter that triggers rejection of a work order, then extend it so an alert's severity can change without corrupting counts or past decisions.

    Data Structure Designcachingidempotencyconcurrencyversioning
  • Statistics & ExperimentsHardModel answer
    Designing and Analyzing an Ad-Scheduling A/B Experiment

    Plan and analyze an ad-scheduling A/B test. Covers randomization, CUPED, ratio metric linearization, sample sizing, multiple testing, and delayed offline conversion handling.

    Statistics & ExperimentsA/B TestingExperimental DesignCUPEDVariance Reduction
  • System DesignMediumModel answer
    Choosing Between TCP and UDP for Different Network Workloads

    Contrast TCP and UDP on connection handling, reliability, ordering, flow and congestion control, framing and overhead, then match each to workloads where its guarantees fit.

    System Designnetworkingtcpudptransport-layer
  • System DesignMediumModel answer
    Fixing Three Hidden Bugs in an Unfamiliar Vehicle-Booking API

    Debug an unfamiliar Node.js vehicle-booking backend where one user's list exposes others' vehicles, new vehicles are missing, and edits revert after refresh.

    System Designdebuggingnodejsaccess-controlpersistence
  • Dynamic ProgrammingMediumAuto-graded
    Most Populous Digit-Sum Group in a Number Range

    Count integers in a huge range grouped by digit sum and return the largest group size, which needs a digit DP with prefix-count subtraction rather than enumeration.

    Dynamic Programmingdigit-dpcountingrange-queriesmath
  • Trees & GraphsMediumAuto-graded
    Cheapest Edit Count to Turn a Tree into a Perfect Tree

    Find the minimum number of leaf deletions and node insertions that make a binary tree perfect, using per-level counts and a bounded search over the target height.

    Trees & Graphsbinary-treebfslevel-ordermath
  • System DesignMediumModel answer
    Five Backend Designs: Callbacks, Geo Search, Chat, Pipelines, Payments

    Sketch five independent large-scale backends in one time-boxed session: event callbacks, nearby-place search, team messaging, a CI/CD engine, and payment processing.

    System Designsystem-designwebhooksgeospatial-indexchat
  • Trees & GraphsMediumAuto-graded
    Recover the Preorder of a BST from Its Postorder Listing

    Turn the postorder listing of a distinct-valued BST into its preorder listing in linear time, including chain-shaped trees, using a monotonic stack over the reversed input.

    Trees & Graphsbinary-search-treemonotonic-stacktree-traversalreconstruction
  • SQL & DataMediumAuto-graded
    Premium Viewing Hours Rolled Up by Week and Month

    Filter viewing events to premium subscribers, bucket them into Monday-start weeks and calendar months per user, sum minutes into hours, and return a sorted long-format result.

    SQL & Dataaggregationgroup-bydateshash-map
  • Math & Bit ManipulationEasyModel answer
    Timed Reasoning Quiz: Sequences, Cycles and Grammar Gaps

    Answer three short reasoning items (number sequence, repeating symbols, sentence completion) and explain a time-boxed strategy for a 50-item, 15-minute screen with no wrong-answer penalty.

    Math & Bit Manipulationaptitudepattern-recognitionmodular-arithmetictime-management
  • Trees & GraphsMediumModel answer
    Traverse a Concurrent Dependency Graph with Rate Control and Retries

    Discover the full transitive dependency graph of a package using sequential BFS and concurrent worker pools with retry handling and exact termination logic.

    Trees & Graphstrees-graphsdesign-dsstacks-queuesconcurrency
  • Statistics & ExperimentsMediumModel answer
    Analyze Spiking Credit Default Rates Under Consistent Approval Metrics

    Investigate a sudden rise in 30-day loan defaults despite constant approval rates, isolate applicant pool shifts from score drift, and evaluate merchant-level credit policy changes.

    Statistics & Experimentscredit riskcohort analysismodel driftbusiness analytics