KatInterview

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

Interview Practice Problems

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

6125
Problems
2271
Auto-graded
15
Topics
275
Added today

Showing 3271–3300 of 6125 results

  • BehavioralMediumModel answer
    Turning a Local Fix into a Shared Platform Other Teams Adopt

    A behavioral prompt about spotting a problem that spans several teams, building a reusable fix, winning adoption, and planning long-term ownership.

    Behavioralbehavioralleadershipcross-teamownership
  • System DesignMediumModel answer
    Why a 307 Redirect Makes a Stream-Body POST Stall in Requests

    Diagnose a Requests POST with a file-like body that stalls after a 307 redirect, fix the body-rewind logic, and write a deterministic regression test.

    System Designpythonhttpdebuggingredirects
  • Machine LearningMediumModel answer
    Designing a Grounded LLM Assistant for Seller Policy Questions

    Decide whether an LLM fits a seller-compliance help desk, choose an architecture, define offline and online accuracy measures, and design a safe improvement loop.

    Machine Learninggenerative-airagllm-evaluationhallucination
  • BehavioralMediumModel answer
    Telling the Story of Your Proudest Engineering Project

    Present one significant project end to end: goal, your role, stack, obstacles, measurable results, and what you would do differently with hindsight.

    Behavioralbehavioralproject-deep-divestar-methodownership
  • Data Structure DesignMediumModel answer
    Finish a REST Resource: Update and Delete Routes in FastAPI

    Extend a small FastAPI service with replace and remove routes that follow existing conventions, handle idempotency and errors correctly, and ship with a full test suite.

    Data Structure Designfastapirest-apipydantichttp-status-codes
  • Arrays & HashingMediumAuto-graded
    Users Needed Per Group for a Two-Proportion Test

    Compute the smallest equal group size for a two-sided two-proportion z-test, given a baseline rate, relative uplift, significance level and target power.

    Arrays & Hashingstatisticssample-sizepower-analysisab-testing
  • BehavioralMediumModel answer
    Pre-Launch Readiness Review for a New Consumer Credit Card

    Explain how you would assess whether a bank is ready to bring a new credit card to market, covering customers, economics, risk, compliance, operations, and launch criteria.

    Behavioralproduct-strategybusiness-judgmentcredit-cardsrisk-and-compliance
  • Trees & GraphsHardModel answer
    Rewrite a Relational Plan: Sink Filters and Trim Columns

    Transform a tree of Scan, Filter, Project and Join operators by moving filters toward the leaves and removing unused columns, while keeping query results unchanged.

    Trees & Graphstree-rewritingquery-optimizationpredicate-pushdownprojection-pruning
  • BehavioralEasyModel answer
    Three Behavioral Prompts for a Data Scientist: Setbacks, Team Morale, Motivation

    Craft structured spoken answers about a personal challenge, a team setback you helped resolve, and your reasons for wanting this role, tied to leadership principles and measurable outcomes.

    BehavioralbehavioralSTAR methodleadership principlesdata scientist
  • Data Structure DesignMediumModel answer
    Build a Dependency-Aware Cell Calculator with Cycle Checks

    Design an in-memory grid of numeric and formula cells in Python, reject circular dependencies, allow shared references, and compare lazy evaluation against eager recomputation with caching.

    Data Structure Designdesigngraphcycle-detectionmemoization
  • BehavioralMediumModel answer
    Walk Through a Distributed Data Platform You Built End to End

    Present one real distributed pipeline you owned: architecture, tool trade-offs, scale and failure handling, and a production incident you diagnosed, all in about four minutes.

    Behavioraldistributed-systemsbehavioralsparkelasticsearch
  • StringsMediumAuto-graded
    Longest Repeated-Letter Block With a Limited Rewrite Budget

    Find the longest block of identical letters obtainable by rewriting at most k characters, testing sliding-window reasoning on majority counts for strings up to 100,000 characters.

    Stringssliding-windowstringstwo-pointershashing
  • System DesignMediumModel answer
    Dependency-Aware Software Package Manager: Resolve, Install, Roll Back

    Design a client-side package manager that resolves versioned dependencies, rejects cycles and conflicts, and applies installs transactionally with recovery after failure.

    System Designsystem-designdependency-resolutiongraphstransactions
  • Arrays & HashingMediumAuto-graded
    Window Sums Within [k, 2k] for Power-of-Two Lengths

    Enumerate every subarray whose length is a power of two and whose sum falls in [k, 2k], using prefix sums to get an O(n log n) solution with ordered output.

    Arrays & Hashingprefix-sumsliding-windowsubarrayenumeration
  • Arrays & HashingMediumAuto-graded
    Deterministic Mini-Batch Gradient Descent for a Line Fit

    Fit a slope and intercept to 2D points by running deterministic mini-batch gradient descent on mean squared error, with exact batching, update order and edge-case rules.

    Arrays & Hashinggradient-descentlinear-regressionmini-batchoptimization
  • BehavioralHardModel answer
    Recommending a Launch Backed by Synthetic Control Evidence

    Turn a synthetic-control estimate into a launch decision: explain how strong the evidence is, set up a staged rollout with rollback rules, manage dissent, and plan a review that can reverse the call.

    Behavioralsynthetic-controlcausal-inferencelaunch-decisionstakeholder-communication
  • Machine LearningHardModel answer
    Building a Low-Latency Email Abuse Filter with ML

    Design a production ML pipeline that scores inbound mail within a tight latency budget, keeps hard-block false positives very low, and stays robust as attackers adapt.

    Machine Learningml-system-designspam-detectioncalibrationdrift-detection
  • Greedy & IntervalsMediumAuto-graded
    Coalesce Touching Segments and Measure Coverage

    Merge half-open integer segments that overlap or touch end-to-start, then report the merged segments in order along with their combined covered length.

    Greedy & Intervalsintervalssortingsweepmerge
  • Arrays & HashingMediumAuto-graded
    Rank Among Values Occurring Once Across Two Lists

    Count occurrences across two combined lists, keep values seen exactly once, and return the k-th largest of them or -1 if there are fewer than k.

    Arrays & Hashinghash-mapcountingsortingheap
  • System DesignHardModel answer
    Build a Large-Scale Question Library for Live Technical Interviews

    Design a platform where teams write, tag, version, search and rank interview questions, and where interviewers pick from a shortlist during a live session without leaking or repeating questions.

    System Designsystem-designsearchrankingversioning
  • Machine LearningMediumModel answer
    Tensor-Parallel Linear Layer: Forward, Backward, and Collectives

    Work out the forward and backward passes of a linear layer whose weight columns are split across devices, pinpoint the required collective, and design tests for sharding bugs.

    Machine Learningtensor-parallelismbackpropagationdistributed-trainingcollectives
  • System DesignMediumModel answer
    Build a Cache-Aware DAG Format for GPU Test Pipelines

    Design a DAG-based intermediate representation for GPU test pipelines and explain how to compile it into a cached, incremental, deterministic plan that survives schema changes.

    System Designdagintermediate-representationcachingincremental-builds
  • Statistics & ExperimentsHardModel answer
    Build-or-Skip Case: Evidence-Backed Go/No-Go for a New Feature

    Make a time-boxed go/no-go case for a brand-new product feature, covering market sizing, internal readiness and risk, and an experiment plan with pre-set proceed, pivot, and kill thresholds.

    Statistics & Experimentsproduct-analyticsexperiment-designmarket-sizinggo-no-go
  • Machine LearningMediumModel answer
    Turning Expected Profit into Keyword Bids Under a Daily Budget

    Design a system that converts predicted business value of a search-ad click into a bid, paces spend against a budget, handles delayed conversions, and proves incremental profit.

    Machine Learningbiddingadsbudget-pacingdelayed-feedback
  • Trees & GraphsMediumAuto-graded
    Balance Path Totals in a Rooted Tree with Minimum Bumps

    Compute the fewest +1 increments that make every root-to-leaf path total equal in a large rooted tree given as a parent array, which needs a bottom-up greedy and an iterative traversal.

    Trees & Graphstreegreedybfstree-dp
  • BehavioralMediumModel answer
    Pitching Yourself and Your Next Move in a Startup Manager Screen

    Practice a concise senior-level pitch covering your background, reason for leaving, ideal next role, and whether you can meet an onsite requirement.

    Behavioralbehavioralself-introductioncareer-goalshiring-manager-screen
  • Machine LearningMediumModel answer
    Hand Estimates for a Sharded GEMM: Compute, Memory and Links

    Count FLOPs, memory bytes and network bytes for a matrix product, apply the roofline model on one device, then compare M, N and K sharding and put numbers on both.

    Machine Learningrooflinearithmetic-intensityshardingcollective-communication
  • Arrays & HashingMediumAuto-graded
    Fill a Padded Sorted Buffer from a Second Sorted List

    Merge two sorted lists into the first, which has trailing spare slots, without extra memory; tests back-to-front two-pointer merging.

    Arrays & Hashingtwo-pointersin-placesortingmerge
  • BehavioralMediumModel answer
    Shipping a High-Stakes Project When Time Is Short

    Tell a structured story about a critical project you delivered against a compressed timeline, covering prioritization, scope and quality tradeoffs, coordination, and measurable results.

    Behavioralbehavioralleadershipprioritizationtradeoffs
  • Data Structure DesignMediumAuto-graded
    Rolling Forklift Ping Counts with Late Arrivals and Shift Tracking

    Simulate a fleet telemetry service that tracks per-forklift pings in a global 15-minute window, handles late pings, and counts clocked-in forklifts.

    Data Structure Designsliding windowheaphash mapdata structure design