KatInterview

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

Interview Practice Problems

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

6049
Problems
2239
Auto-graded
15
Topics
272
Added today

Showing 1381–1410 of 6049 results

  • BehavioralMediumModel answer
    Tackling a Problem That Beat You, Your Team, and Your AI Tools

    Behavioral prompt: tell the story of a hard technical problem that peers and AI assistants couldn't crack, and show the method you used to make progress anyway.

    Behavioralbehavioraldebuggingproblem-solvingreliability
  • BehavioralMediumModel answer
    Demonstrating Adaptability, Prioritization, and Composure Under Pressure

    A detailed guide on answering multi-part behavioral questions about tight deadlines, rapid learning, interview preparation, and maintaining professional composure under stress.

    Behavioralbehavioralprioritizationcommunicationleadership
  • Arrays & HashingEasyAuto-graded
    Find All Top-Frequency Labels Without Using max()

    Count items by their string form and return every label tied for the highest count, in first-appearance order, without calling max().

    Arrays & Hashinghash-mapcountingfrequencyties
  • Heaps, Sorting & SearchMediumAuto-graded
    Group and Rank Feed Items with Photo Bundling

    Rearrange feed items by sorting on rank score, grouping photos into batches of up to three, and maintaining stable ordering for equal scores.

    Heaps, Sorting & Searchsortingarraysbatching
  • BehavioralMediumModel answer
    Mastering the Engineering Manager Behavioral Screen

    Learn how to answer core engineering leadership interview questions spanning technical complexity, company alignment, tight deadlines, cross-team alignment, and system health.

    Behavioralbehavioralleadershipproject-managementsystem-health
  • System DesignMediumModel answer
    Workout Tracker Backend: Live Routes, Period Rankings, Social Boards

    Design the backend for a workout-tracking app with real-time route sharing to followers, top-workout queries over date ranges, and ranked boards of aggregated user stats.

    System Designsystem-designleaderboardsredisstreaming
  • Data Structure DesignMediumAuto-graded
    Batch Autocomplete Lookup Over a Dictionary of Words

    Answer many prefix queries against a word list, returning sorted distinct matches for each, using sorting and binary search or a trie instead of rescanning the list per query.

    Data Structure Designbinary-searchtriesortingstrings
  • BehavioralMediumModel answer
    Four Behavioral Prompts on Disagreement and Influence for Data Scientists

    Prepare structured stories on teammate conflict, pushing back versus pivoting, persuading skeptical seniors, and handling a difficult colleague, with decision logic and measurable results.

    Behavioralbehavioralconflict-resolutionstakeholder-managementinfluence-without-authority
  • Linked ListsEasyAuto-graded
    Combine Two Sorted Sequences

    Merge two non-decreasing sequences into a single sorted sequence, maintaining stable order on equal values.

    Linked Liststwo-pointerslinked-listarrayssorting
  • Machine LearningHardModel answer
    Designing a Leak-Free Weekly Churn Model Pipeline

    Design a weekly batch churn-prediction system for millions of subscribers, covering leakage-free features, rare positives, time-aware validation, metrics, and drift monitoring.

    Machine Learningchurn-predictiondata-leakageclass-imbalancebacktesting
  • StringsMediumModel answer
    Stream Data Processing with Early Cutoff on Sequence Detection

    Yield data from a continuous stream of string fragments, terminating immediately when a specific multi-character sequence is identified across fragment boundaries.

    Stringsstringssliding-windowtwo-pointerskmp
  • Machine LearningMediumModel answer
    Build a Document Q&A Pipeline with Retrieval and Grounded Prompts

    Wire together a given embedder, vector store and LLM into a retrieval-augmented question-answering flow, then justify vector similarity search and when this approach beats alternatives.

    Machine Learningragembeddingsvector-searchcosine-similarity
  • BehavioralMediumModel answer
    Turning Vague Requests into Plans and Aligning Teammates

    Prepare a three-part behavioral answer: clarifying a fuzzy business request, resolving a disagreement within your team, and explaining a technical idea to non-technical stakeholders.

    Behavioralbehavioralcommunicationstakeholder-managementconflict-resolution
  • Trees & GraphsHardModel answer
    Fastest Route Through Only the Courses a Goal List Needs

    Given courses with durations, prerequisite links and a list of goal courses, compute the minimum time to finish the goals and their needed prerequisites, as total effort and as elapsed time.

    Trees & Graphsgraphtopological-sortdagcycle-detection
  • Statistics & ExperimentsHardModel answer
    Experiment Plan for an LLM-Powered Inline Rewrite Feature

    Plan a controlled experiment for an inline AI rewrite feature: choose metrics and guardrails, pick the randomization unit, size the test, and guard against bias.

    Statistics & Experimentsab-testingexperiment-designmetricsstatistical-power
  • BehavioralMediumModel answer
    Career Story and Motivation for a Cloud Platform Role

    Deliver a concise career narrative, justify why you want a cloud-infrastructure engineering role at an enterprise SaaS company now, and name evidence-backed strengths.

    Behavioralbehavioralself-introductionmotivationcareer-narrative
  • System DesignMediumModel answer
    Choosing Worker Count When Merge Cost Grows Quadratically

    Pick the worker count that best minimizes total runtime when compute scales as n/k and combining partial results costs k squared, then justify it with analysis and trade-offs.

    System Designdistributed-systemsscalabilityasymptotic-analysisparallelism
  • Statistics & ExperimentsHardModel answer
    Experiment Design for a Social Sharing Feature with Spillover

    Plan an experiment for a viewing feature that spreads through friend networks: pick metrics, handle interference, explain SUTVA, run an artwork multivariate test, and estimate segment effects.

    Statistics & Experimentsab-testingnetwork-effectssutvacluster-randomization
  • System DesignHardModel answer
    Ultra-Low-Latency Quoting Platform: Colo Core and Remote Control Plane

    Architect a market-making stack for futures and options with a co-located hot path, microsecond latency targets, hard safety controls, and a remote operations site.

    System Designlow-latencymarket-makingkernel-bypasslock-free
  • Data Structure DesignMediumModel answer
    Coalescing Single-Key Reads into Timed Batch Requests

    Build a callback-driven client that gathers individual key requests into one batched GET every 100 ms, using only a timer and an async HTTP primitive, while keeping overlapping batches isolated.

    Data Structure Designevent-loopbatchingcallbackstimers
  • Arrays & HashingMediumAuto-graded
    Possible Minimum Excluded Values After One Increment

    Find all possible values of the minimum non-negative excluded integer (MEX) achievable after at most one element increment.

    Arrays & Hashingarrayshash-tablefrequency-arraymath
  • Data Structure DesignEasyAuto-graded
    Log Event Processor with Time Order

    Tests data structure management and stable sorting to process out-of-order time-stamped events while preserving insertion order for ties.

    Data Structure Designsortingdata-structuresdesign
  • Greedy & IntervalsMediumAuto-graded
    Longest Streak of Growing Daily Distinct Picks

    Find how many days a growing-size distinct-item picking schedule can run, using binary search on the answer plus a capacity feasibility check.

    Greedy & Intervalsgreedybinary-searchprefix-sumsfeasibility-check
  • BehavioralHardModel answer
    Navigating a Deep Technical Disagreement With a Peer

    Walk through a real technical disagreement with a colleague: both viewpoints, how you evaluated the options, what was decided, and how you kept the working relationship strong afterward.

    Behavioralbehavioralconflict-resolutiondisagree-and-commitdecision-making
  • Greedy & IntervalsHardAuto-graded
    Simulate Trading Order Fill Rate Limit

    Simulate order executions under a time-windowed volume participation constraint using a sliding window.

    Greedy & Intervalssliding-windowqueuegreedytime-series
  • System DesignMediumModel answer
    Shipping a Fraud Scoring Model: Rollout, Observability, 50 ms Tail

    Plan how to release a fraud classifier to production, watch it over time, and bring its online p99 latency under 50 ms without giving up much accuracy.

    System Designmlopsmodel-deploymentmonitoringlatency
  • Machine LearningMediumModel answer
    Bounded-Memory Online Clustering of a Numeric Stream

    Design and code a clustering routine for an endless stream of numbers that keeps only small per-cluster summaries, and discuss seeding, convergence, outliers, drift, and testing.

    Machine Learningstreamingonline-clusteringk-meansconcept-drift
  • Trees & GraphsMediumAuto-graded
    Validate Binary Tree from Directed Edge List

    Evaluates tree properties, cycle detection, edge validity, and in-order traversal under strict error precedence.

    Trees & Graphstreesgraphsdfstraversal
  • Greedy & IntervalsMediumAuto-graded
    Collapse Booking Windows into Non-Touching Blocks

    Merge inclusive ranges that share at least one point into a sorted list of disjoint ranges, testing sorting, a linear sweep, and correct handling of touching endpoints and nesting.

    Greedy & Intervalsintervalssortingsweepgreedy
  • Data Structure DesignMediumAuto-graded
    Rate-Limited Dispatcher: Which Requests Fire and When

    Simulate a rate limiter with a fixed lockout window that keeps only the newest waiting request, using event-driven processing and a precise rule for requests landing exactly at window end.

    Data Structure Designsimulationevent-driventhrottletwo-pointers