KatInterview

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

Interview Practice Problems

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

6058
Problems
2243
Auto-graded
15
Topics
272
Added today

Showing 1531–1560 of 3815 results

  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • System DesignMediumModel answer
    Design a Real-Time Event Ticketing and Seat Reservation Platform

    Design a scalable event ticketing backend that supports high-throughput browsing and guarantees strong consistency during high-contention seat reservation and payment flows.

    System Designsystem-designconcurrencydistributed-systemstransactions
  • System DesignHardModel answer
    Design a Smart Workspace Allocation & Ranking Engine

    Architect an enterprise workspace ranking engine that evaluates hard constraints, minimizes space fragmentation, ensures inter-team fairness, and balances user preferences with learned scoring models.

    System Designsystem-designranking-systemsrecommendation-systemsdistributed-systems
  • Statistics & ExperimentsEasyModel answer
    Spectrum of a Matrix Inverse and the Trace of A⁻¹

    Show how the eigenvalues of an invertible matrix relate to those of its inverse, multiplicities included, and write the sum of the inverse's eigenvalues in terms of A.

    Statistics & Experimentslinear-algebraeigenvaluestracematrix-inverse
  • BehavioralMediumModel answer
    Demonstrating Ownership, Analytical Depth, and Responsible AI Use

    A detailed prep guide covering technical conflict resolution, root-cause investigation, taking initiative beyond scope, and integrating generative AI tools responsibly.

    Behavioralbehavioralleadership-principlesconflict-resolutionroot-cause
  • System DesignMediumModel answer
    Rapid Multi-Terabyte File Distribution Across Large Server Fleets

    Derive the fundamental physical time limits for distributing a 2 TB file to up to 2,000 servers over 25 Gbps links, then design a peer-assisted distribution protocol to match it.

    System Designsystem-designdistributed-systemspeer-to-peernetworking
  • System DesignMediumModel answer
    Design a Secure Medical Voice Recording & Transcription Pipeline

    Design a scalable, HIPAA-compliant system for uploading, transcribing, and retaining audio consults using asynchronous workflows and strict security controls.

    System Designsystem-designsecurityasynchronous-processingcompliance
  • BehavioralMediumModel answer
    Tell a Story About Pressure, Pushback, and Unclear Requirements

    Prepare a structured behavioral answer about a time you balanced a hard deadline, tough critique, or vague requirements, showing clear trade-offs, personal ownership, and measurable results.

    BehavioralbehavioralSTARtrade-offsownership
  • Arrays & HashingMediumModel answer
    Solving Multi-Task Online Assessment Challenges

    A guide to solving four standard assessment tasks: cumulative running totals, step-by-step array reduction, deterministic matrix block placement, and linear arithmetic series optimization.

    Arrays & Hashingarrayssimulationgridoptimization
  • Data Structure DesignMediumModel answer
    Build an In-Memory Store with Nested Transactions and Value Counts

    Design a string key-value store with transactional writes, fast rollback, and a count of keys holding a given value, with all transaction semantics spelled out.

    Data Structure Designhash-maptransactionsundo-logdesign