KatInterview

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

Interview Practice Problems

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

6056
Problems
2241
Auto-graded
15
Topics
273
Added today

Showing 4501–4530 of 6056 results

  • Statistics & ExperimentsMediumModel answer
    Estimate ITT, TOT, and LATE from a Discounted Offer Experiment

    Decompose causal effects when an experiment has two-sided noncompliance, using ITT, TOT/LATE, and the Wald IV estimator.

    Statistics & Experimentscausal inferenceexperimentationinstrumental variablesnoncompliance
  • Statistics & ExperimentsMediumModel answer
    Evaluating a People-You-May-Know Feature Rollout

    Design the full measurement plan for a new connection-suggestion algorithm: metrics, experiment setup, a mixed-results decision, revenue translation, and post-launch monitoring.

    Statistics & Experimentsexperiment-designmetric-selectionnetwork-effectsa-b-testing
  • System DesignMediumModel answer
    Designing Automated Failover for Distributed Databases

    Design a resilient database layer that automatically handles node failures while preventing data loss and ensuring only one primary accepts writes.

    System Designdatabasesdistributed-systemsfault-toleranceconsensus
  • Statistics & ExperimentsHardModel answer
    Statistical Inference: Hypothesis Tests, CIs, and Sampling Strategies

    Apply fundamental statistical inference techniques including hypothesis testing, confidence intervals, sample size calculations, tail probability estimation, and parameter estimation.

    Statistics & Experimentshypothesis-testingconfidence-intervalssamplingmaximum-likelihood
  • System DesignHardModel answer
    Build a Fault-Tolerant Distributed Counter at Scale

    Design a horizontally scalable counter service that guarantees atomic updates, read-after-write consistency, and correct behavior under retries and failures.

    System Designdistributed-systemsconsistencyconcurrencyfault-tolerance
  • BehavioralMediumModel answer
    Research Failure, Feedback, and Validation in Empirical Work

    Explain how you identify and correct flawed empirical methods, incorporate critical feedback, and rigorously validate results in research or modeling projects.

    Behavioralresearchfeedbackvalidation
  • System DesignHardModel answer
    Design a Streaming Conversational AI Assistant

    Design the backend architecture for a multi-turn AI chat product with streaming responses, session history, safety controls, and optional tool integrations.

    System DesignstreamingLLM inferencedistributed systemsreal-time
  • System DesignMediumModel answer
    Design a Personalized Activity Feed for a High-Scale Social Platform

    Design the backend that publishes user posts and serves each follower a ranked, paginated feed, handling celebrity accounts, deletions, and privacy at scale.

    System Designfeedfan-outrankingscalability
  • Arrays & HashingMediumAuto-graded
    Best Sum of Extremes in a Contiguous Subarray

    Tests whether a candidate can reduce an O(n²) subarray search to a single linear scan by proving that adjacent pairs always dominate longer windows.

    Arrays & Hashingarraysgreedysliding-window
  • BehavioralMediumModel answer
    Clarifying Vague Requirements Through Strategic Communication

    Explain how you've used deliberate communication to transform unclear project requirements into aligned execution with measurable improvements.

    Behavioralcommunicationproject-managementstakeholder-alignment
  • Machine LearningHardModel answer
    Gradient Computation Through Consecutive Matrix Multiplications

    Derive gradients for each weight matrix in a chain of matrix products using the chain rule and implement an efficient backward pass.

    Machine Learningbackpropagationmatrix-calculusgradient-descent
  • Data Structure DesignMediumAuto-graded
    Group Expense Balancer: Greedy vs Optimal Settlement

    Tests ability to implement both a greedy two-pointer debt-clearing algorithm and an exact minimum-transaction settlement using memoized recursion.

    Data Structure Designgreedymemoizationsimulation
  • System DesignMediumModel answer
    Memory Access Patterns and CPU Cache Performance

    Analyze how traversal order affects performance in large arrays, explain the cache hierarchy and address translation, and identify practical optimizations.

    System Designperformancememorycachinghardware
  • Machine LearningHardModel answer
    Diagnose a Churn Model That Collapses Out of Time

    Given a binary classifier with train AUC 0.95, random-split val AUC 0.62, and time-holdout AUC 0.55, systematically identify and fix every failure mode.

    Machine Learningdata-leakagefeature-driftmodel-calibrationcross-validation
  • StringsMediumAuto-graded
    Score Tasks From Event Log Strings

    Parse "id:command" log lines, accumulate weighted scores per task with a hash map, and keep only tasks that completed.

    Stringsstringshash-mapsimulationparsing
  • System DesignMediumModel answer
    Diagnosing and Resolving a Full-Disk Service Outage

    A production service returns 500 errors for all requests due to local disk exhaustion; walk through triage, mitigation, root cause analysis, and prevention.

    System Designincident-responselinuxdisk-usageobservability
  • Math & Bit ManipulationMediumAuto-graded
    Balance Integer Values to Minimize Spread

    Tests understanding of integer division, remainder distribution, and handling negative numbers in a fairness optimization problem.

    Math & Bit Manipulationmathgreedydivisionedge-cases
  • BehavioralMediumModel answer
    Navigate a Technical Disagreement with a Teammate

    Walk through a real conflict over a technical or project decision, showing how you evaluated competing views and reached a resolution with evidence.

    Behavioralconflict resolutioncollaborationdecision makingcommunication
  • BehavioralMediumModel answer
    Walk Me Through an ML Project: Scope, Milestones, and a Real Disagreement

    Structure a concrete ML project story around scope boundaries, observable milestones, a genuine conflict, and how arriving evidence changed your plan.

    Behavioralproject managementml lifecyclestakeholder communicationscope
  • BehavioralMediumModel answer
    Motivations and Technical Deep Dive in a Senior Engineering Round

    Explain your interest in a company and role, then walk through a project you owned in technical depth, defending decisions under scrutiny.

    Behavioralbehavioralleadershiptechnical-depth
  • System DesignMediumModel answer
    Should We Move Off MySQL? Assessing a Document Database Migration

    Decide whether replacing MySQL with MongoDB makes sense for a live service by analyzing workload evidence, correctness needs, and a safe dual-run cutover plan with measurable proof.

    System Designdatabasesmigrationmongodbmysql
  • StringsMediumAuto-graded
    Count Sliding Windows Matching a Step-Direction Sequence

    Tests whether a candidate can reduce pairwise comparisons to a sign sequence and count all overlapping pattern matches in linear time using KMP.

    Stringsstring-matchingkmparrayssliding-window
  • StringsEasyAuto-graded
    Grid Walker: Did the Drone Return to Base?

    Tests whether a candidate can simulate 2D movement on a grid and determine if a sequence of directional steps nets zero displacement.

    Stringsstringssimulationmath-bits
  • Statistics & ExperimentsHardModel answer
    Diagnose a Rare-Disease Screening Test Using Bayes' Theorem

    Apply conditional probability and Bayes' theorem to evaluate the real-world predictive value of a medical screening test with known sensitivity and specificity.

    Statistics & Experimentsconditional probabilityBayes theoremstatisticsprobability
  • BehavioralMediumModel answer
    Career Story, Hardest Build, and a Real Failure

    Show a crisp career arc, then unpack one hard project's constraints, trade-offs, architecture, validation and results, and finish with an honest failure retrospective.

    Behavioralbehavioral-interviewproject-deep-divepostmortemsystem-design
  • System DesignHardModel answer
    Design a Two-Way Sync Engine Between a Platform and External SaaS Tools

    Design a system that keeps records in sync across a central platform and multiple third-party SaaS integrations, handling conflicts, retries, and rate limits reliably.

    System Designdistributed-systemsevent-drivenconflict-resolutionidempotency
  • Machine LearningMediumModel answer
    Extending a Credit Model to Underserved Score Segments

    Design an approach to evaluate applicants below your model's training range when historical approval data exists only above a credit score threshold.

    Machine Learningmodel-extrapolationdistribution-shiftreject-inference
  • System DesignMediumModel answer
    Design a Rate Limiting Service for a Multi-Region API Platform

    Design a low-latency, distributed rate limiter that enforces per-key request quotas across a fleet of servers handling millions of requests per second.

    System Designrate-limitingdistributed-systemsredisconsistency
  • Data Structure DesignHardModel answer
    Build a Reference-Counted Pointer from Scratch in C++

    Implement a class template SharedPtr<T> that manages heap object lifetime through reference counting, supporting copy, move, reset, and safe self-assignment.

    Data Structure DesignC++RAIImemory managementtemplates
  • Trees & GraphsMediumAuto-graded
    Earliest-Arrival Reachability on Timed Transit Routes

    Tests whether a candidate can model time-respecting graph search over indexed transit routes to determine if a destination is reachable from a starting stop.

    Trees & Graphsgraph searchBFSgreedyshortest path