KatInterview

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

Interview Practice Problems

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

6118
Problems
2267
Auto-graded
15
Topics
271
Added today

Showing 2581–2610 of 6118 results

  • 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
  • Arrays & HashingMediumAuto-graded
    Widest Window With an Exact Total in a Signed Sequence

    Find the longest contiguous run in an integer list (negatives and zeros allowed) whose total equals a target, using prefix sums and a hash map of earliest positions.

    Arrays & Hashingprefix-sumhash-mapsubarray
  • Statistics & ExperimentsMediumModel answer
    Sampling a Logistic Variable and a Bivariate Chain

    Derive an inverse-CDF sampler for the logistic distribution, build a Gibbs sampler for a bivariate target, and explain how to check correctness, burn-in, thinning and sample size.

    Statistics & Experimentsinverse-transform-samplinggibbs-samplingmcmclogistic-distribution
  • Statistics & ExperimentsMediumModel answer
    Plan an A/B Test for a Values Card in Signup

    Design a complete experiment plan for a new onboarding screen: metrics, randomization, sample size, sensitivity boosts, and validity checks such as SRM and novelty effects.

    Statistics & Experimentsab-testingexperiment-designpower-analysissrm
  • StringsMediumAuto-graded
    Even-Width Paragraph Formatter

    Greedily pack words into lines of a fixed width, then pad each line with spaces so it is exactly that wide, handling single-word and final lines separately.

    Stringsstringsgreedysimulationtext-justification
  • Math & Bit ManipulationMediumAuto-graded
    Calculate Promotion Break-Even for Rental Discount

    Compute the break-even target for new customer acquisitions under base and spend-uplift promotional scenarios.

    Math & Bit Manipulationmathunit-economicsfinancial-modeling
  • StringsMediumAuto-graded
    Check Whether a Token Is a Well-Formed Decimal Literal

    Scan a string once to decide if it matches a small decimal-literal grammar with optional sign, a dotted mantissa and an optional exponent, handling many edge cases.

    Stringsstring-parsingstate-machinevalidationedge-cases
  • BehavioralHardModel answer
    Motivating a Move into Frontier AI Infrastructure Engineering

    Craft a persuasive answer on why a safety-focused AI lab appeals to you, why now is the right moment to switch, and how your systems background applies to large-scale training and serving.

    Behavioralbehavioralmotivationcareer-transitionml-infrastructure
  • BehavioralMediumModel answer
    Handling Scope Changes and Roadmap Conflicts Under Tight Deadlines

    Learn how to evaluate scope changes, communicate trade-offs, manage technical debt, and align engineering teams during last-minute roadmap shifts.

    BehavioralLeadershipStakeholder ManagementTechnical DebtProject Management
  • Statistics & ExperimentsHardModel answer
    Experiment Plan for Rolling Out a Comment-Spam Filter

    Design and analyze a cluster-randomized, stepped-wedge experiment for a bot-comment suppression system, including power, adaptation risks, a quasi-experimental fallback and stop/go rules.

    Statistics & Experimentsexperiment-designinterferencecluster-randomizationpower-analysis
  • Heaps, Sorting & SearchEasyAuto-graded
    Rank Top Earners Worldwide After Converting to USD

    Merge several lists of employee records, convert each salary to USD using a rate map, and return the top N earners with a deterministic tie-break.

    Heaps, Sorting & Searchsortinghash-mapdata-manipulationsimulation
  • Trees & GraphsMediumAuto-graded
    Reachable Vaults and Weighted Bracket Nesting Score

    Combine graph reachability from a start node with computing a nesting-weighted score of a balanced bracket string, returning both results as a pair.

    Trees & Graphsgraph-traversaldfsstringsparentheses
  • BehavioralMediumModel answer
    Describing Your Work Drivers and Handling Friction

    A behavioral question on what energizes you as an engineer, what drains you, and how you stay effective when real projects fall short of your ideal conditions.

    Behavioralbehavioralmotivationself-awarenessstar-method
  • BehavioralMediumModel answer
    Juggling Competing ML Projects and Winning Buy-In

    A three-part behavioral prompt on ranking competing ML workstreams, making a case for extra capacity, and describing your hardest project, with a model answer for each.

    Behavioralbehavioralprioritizationstakeholder-managementml-engineering
  • System DesignMediumModel answer
    Licensed-Clinician Matching Queue for a Virtual Care Service

    Design a 24/7 virtual-care intake system that routes waiting patients to clinicians licensed in the patient's current state, with safe concurrent claiming, auditing and compliance.

    System Designsystem-designqueueingconcurrencypostgres
  • Data Structure DesignMediumModel answer
    Design an Extensible Boolean Rule Evaluation Engine

    Construct an object-oriented expression tree for logical and comparison operations that evaluates safely against context dictionaries with short-circuiting.

    Data Structure Designobject-oriented-designtreecomposite-patternevaluation-engine
  • System DesignMediumModel answer
    Build a Multi-Device Chat Backend for Two-Party Conversations

    Design a low-latency chat service for two-party conversations where each user has several devices, covering delivery state, push fallback, retry-safe sends and stable history paging.

    System Designsystem-designmessagingwebsocketsidempotency
  • Statistics & ExperimentsHardModel answer
    Interaction Effects, Logit vs LPM, and Endogeneity in a Retention Study

    Model day-7 retention with a treatment-by-new-user interaction, interpret LPM and logit coefficients, pick diagnostics and standard errors, handle an endogenous regressor, and model counts.

    Statistics & Experimentsregressioninteraction-effectslogistic-regressioninstrumental-variables
  • Arrays & HashingHardAuto-graded
    Reachable Smallest Missing Values After a Single Increment

    Find every possible smallest-missing value of an array after at most one capped +1 edit, using counting and MEX case analysis in linear time.

    Arrays & Hashingmexcountingcase-analysisfrequency-array
  • System DesignMediumModel answer
    Architecture Decisions for an Online Experimentation System

    Architect an experimentation engine balancing sync/async validation, strict latency budgets, and experiment health monitoring.

    System Designsystem-designab-testinglatencydistributed-systems
  • Linked ListsMediumModel answer
    Unlink From the Tail and Prune a Tree by Leaf Swap

    Two pointer-manipulation tasks: remove the k-th node from the tail of a singly linked list, and delete a value from a general binary tree by overwriting it with the deepest-rightmost node's value.

    Linked Listslinked-listtwo-pointersbinary-treebfs
  • Math & Bit ManipulationEasyAuto-graded
    Compute Precision and Recall from Confusion Counts

    Compute precision and recall from the four confusion-matrix counts of a binary classifier, returning 0.0 for a metric whose denominator is zero.

    Math & Bit Manipulationmathconfusion-matrixprecision-recalledge-cases
  • Dynamic ProgrammingMediumAuto-graded
    Longest Shared Run Between Two Integer Lists

    Find the longest block of consecutive values common to two integer lists, and report its length and the smallest pair of start positions, using dynamic programming over suffix matches.

    Dynamic Programmingdynamic-programmingarrayssubarraytie-breaking
  • System DesignMediumModel answer
    Building a Streaming Clickstream Metrics Platform End to End

    Design a streaming platform that turns raw website click events into fresh, correct, queryable aggregates, covering partitioning, windows, state, sinks, back-pressure and failures.

    System Designkafkaflinkstream-processingexactly-once
  • BehavioralMediumModel answer
    Making the Case for a Fintech Engineering Role

    Give a concise, evidence-backed answer on why a consumer-lending fintech and its software engineering role fit your skills and goals, without naming a specific employer.

    Behavioralbehavioralmotivationfintechrecruiter-screen
  • Arrays & HashingMediumAuto-graded
    Check a Partially Filled Number Grid for Rule Violations

    Scan a 9x9 digit grid once and decide whether any row, column, or 3x3 block repeats a digit, using per-group bitmasks or sets.

    Arrays & Hashinghashingbitmaskmatrixsimulation
  • System DesignMediumModel answer
    Design an Up-To-Date Knowledge Base Page Crawler

    Design a distributed web crawler and storage architecture that guarantees every page in a target wiki is updated at least once every five days.

    System Designsystem-designdistributed-systemsweb-crawlerstorage
  • System DesignMediumModel answer
    Building a Multi-Channel Alerting Pipeline at Billion-Scale

    Design a platform that takes events from internal services and delivers them to users through push, SMS, email and an in-app inbox, with retries, deduplication and celebrity-scale fanout.

    System Designsystem-designnotificationskafkafanout
  • Statistics & ExperimentsMediumModel answer
    Analyzing Profit Sensitivity and Break-Even Thresholds

    Evaluate unit economics, compute break-even volumes under cost and price shifts, and interpret business risk through operating leverage.

    Statistics & Experimentsunit-economicssensitivity-analysisbreak-evenoperating-leverage
  • BehavioralMediumModel answer
    Spotting Overlapping Projects Across Two Teams

    Explain how you would respond on discovering that two teams are separately building the same thing, covering verification, alignment, escalation, and preventing a recurrence.

    Behavioralbehavioralleadershipcross-team collaborationconflict resolution