KatInterview

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

Interview Practice Problems

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

6070
Problems
2251
Auto-graded
15
Topics
273
Added today

Showing 1741–1770 of 3819 results

  • Machine LearningMediumModel answer
    Build a Pre-Release and Production Quality Gate for LLMs

    Design an automated platform that checks new LLM versions and sampled production traffic for correctness, safety, and regressions, with reproducible runs and clear interfaces.

    Machine Learningllm-evaluationml-system-designllm-as-judgeregression-testing
  • Machine LearningMediumModel answer
    Sparse Expert Layers: Routing and Cross-Device Sharding

    Describe how a sparse top-k expert feed-forward layer processes a token batch, and how placing experts on different devices changes communication, balance, and memory.

    Machine Learningmixture-of-expertsexpert-parallelismdistributed-trainingrouting
  • BehavioralMediumModel answer
    Handling a Silent Owner of a Critical Task Before a Deadline

    Your team is blocked because the owner of a critical-path task has gone silent. Describe how you would unblock work, stay fair to them, escalate, report risk, and prevent a repeat.

    Behavioralbehavioralleadershipescalationconflict-resolution
  • System DesignMediumModel answer
    Build a Blob Storage Platform with Resumable Large Uploads

    Design a cloud blob store that accepts huge files in parts, keeps them durable across machine and site failures, and scales to petabytes with heavy concurrent traffic.

    System Designobject-storagemultipart-uploadreplicationerasure-coding
  • BehavioralMediumModel answer
    Turning Hard Manager Feedback into Lasting Growth: A Behavioral Answer

    Practice answering a behavioral question about tough or surprising manager feedback: your reaction, the plan you built, how you checked in, and the habits that stuck.

    Behavioralbehavioralfeedbackcoachabilitystar-method
  • Machine LearningMediumModel answer
    Designing a Ranked Product Recommender with Role and Context Rules

    Design an ML pipeline that builds personalized ranked product lists, using collaborative filtering and ranking models while respecting user role, context, and business constraints.

    Machine Learningrecommender-systemscollaborative-filteringlearning-to-rankembeddings
  • Machine LearningMediumModel answer
    Build a Pre-Norm Transformer Layer with a Gated SiLU Feed-Forward

    Write a Transformer layer with masked multi-head self-attention, a gated Swish feed-forward network, residual paths and layer norm, and explain its shapes, masking and complexity.

    Machine Learningtransformermulti-head-attentionswiglulayer-normalization
  • BehavioralMediumModel answer
    Describe a Time You Reduced Complexity and Showed the Gain

    Behavioral prompt: recount a project where you cut the complexity of a product or system, explain how you found the cause, brought people along, and verified the improvement with data.

    Behavioralbehavioralownershipsimplificationstakeholder-management
  • BehavioralMediumModel answer
    Five Senior ML Engineer Leadership Stories: Prep Guide

    Prepare five structured leadership stories for a senior ML engineer behavioral panel: impact, risk, failure, conflict, and team and stakeholder execution, with an emphasis on measurable outcomes.

    Behavioralbehavioralleadershipsenior-ml-engineerstakeholder-management
  • System DesignMediumModel answer
    Exact-Match File Deduplication at Petabyte Scale

    Design a service that finds byte-identical files across billions of stored objects and lets clients check for existing content before uploading, while keeping network transfer low.

    System Designsystem-designdeduplicationhashingdistributed-storage
  • Machine LearningMediumModel answer
    Transformers, Embeddings, Pretraining and Fine-Tuning Compared

    Contrast transformer architectures with embedding models, then explain why models are pretrained, how fine-tuning adapts them, and which risks to monitor.

    Machine Learningtransformersembeddingsfine-tuningtransfer-learning
  • Statistics & ExperimentsHardModel answer
    Validating a New Ad Ranking Model Through an Online Test

    Plan an online experiment for a new ad-ranking model, choose metrics, judge a CTR gain, investigate a surprising segment result, and decide whether a combined CTR and revenue gain justifies a global launch.

    Statistics & Experimentsab-testingexperiment-designguardrail-metricsheterogeneous-effects
  • BehavioralMediumModel answer
    Pushing Back on a Senior Decision: A Behavioral Playbook

    Prepare a structured story about a time you challenged a senior leader's decision, covering how you made your case, how it resolved, and what you would change.

    Behavioralbehavioralconflict-resolutionstakeholder-managementinfluence
  • Data Structure DesignMediumModel answer
    Resilient Chargeback Inbox: Normalize, Cache, and Cancel in React

    Build a React dispute list that normalizes inconsistent API data, caches queries for 60 seconds, and avoids stale responses when filters or search change quickly.

    Data Structure Designreacttypescriptcachingrace-conditions
  • Statistics & ExperimentsMediumModel answer
    Measuring a Premium Plan Launch and Flagging Risky Accounts

    Define primary, diagnostic and guardrail metrics for a paid-plan launch using only three tables, then build explainable rule-based SQL that scores accounts for financial-crime risk.

    Statistics & Experimentsmetricsexperimentationsqlfraud-detection
  • System DesignMediumModel answer
    Build a Conversational Catalog Search Agent with Guardrails

    Design a multi-step conversational search assistant over a read-only catalog that clarifies intent, enforces hard constraints, grounds answers in records, and falls back safely.

    System Designagentic-searchretrievalllm-agentsgrounding
  • BehavioralMediumModel answer
    Walk Through a Decision You Informed With Causal Methods

    Describe a real project where you estimated a causal effect without a clean experiment, covering the identification problem, method, diagnostics, the decision made, and what you would redo.

    Behavioralcausal-inferencebehavioralobservational-studiesexperimentation
  • System DesignMediumModel answer
    Build a Pluggable Connector Layer for Third-Party Services

    Design a platform that lets a product authorize customer accounts at many external vendors, run actions against them, and ingest their events reliably, with new connectors cheap to add.

    System Designsystem-designintegrationswebhooksidempotency
  • System DesignHardModel answer
    Build a Composable Filesystem Query Engine in the Spirit of find

    Design an extensible, object-oriented library and CLI that walks directory trees, filters entries with composable predicates, and handles symlinks, errors, and huge trees.

    System Designobject-oriented-designfilesystempredicatestraversal
  • Statistics & ExperimentsMediumModel answer
    Evaluating a Dispatch Change: Welch Test on Pickup Wait Times

    Compute a Welch's t-test p-value on pickup wait times for one city and month, then judge whether the result is trustworthy and propose a sounder experiment for a shared fleet.

    Statistics & Experimentswelch-t-testpandasab-testinginterference
  • Statistics & ExperimentsMediumModel answer
    Root-Causing a Sudden Drop in Marketplace Sales

    Describe how you would investigate an unexpected, sustained fall in a company's sales: which metrics to break down, which data sources to pull, and how to turn findings into an action.

    Statistics & Experimentsroot-cause-analysismetricsfunnel-analysiscohort-analysis
  • Statistics & ExperimentsMediumModel answer
    Measuring the True Lift of Propensity-Targeted Upgrade Nudges

    Plan an evaluation of push nudges sent to users a model flags as likely to subscribe, covering pre-launch checks, flat-result diagnosis, and alternatives to user-level A/B tests.

    Statistics & Experimentsexperimentationcausal-inferenceincrementalityab-testing
  • Machine LearningMediumModel answer
    Cross-Validation Folds: Choosing k and Spotting Bad Estimates

    Describe how k-fold cross-validation works, how the choice of k shifts bias, variance and cost, and which situations make a cross-validated score overly optimistic or unreliable.

    Machine Learningcross-validationbias-variancedata-leakagemodel-evaluation
  • BehavioralHardModel answer
    Raising a Contested Risk in an AI System: Story and Principles

    Describe a time you flagged an ambiguous safety or security risk against delivery pressure, then explain how AI safety principles shape your everyday engineering choices.

    Behavioralbehavioralai-safetyrisk-assessmentescalation
  • Statistics & ExperimentsMediumModel answer
    Testing a Courier Tier Program Under Marketplace Interference

    Design an experiment for a courier priority-access program where treated and control couriers compete for the same orders, covering randomization, metrics, spillover analysis, and sample size.

    Statistics & Experimentsexperimentationinterferencecluster-randomizationswitchback
  • Statistics & ExperimentsHardModel answer
    Shopping Tab Metrics Dashboard and Browse-to-Buy Gap Diagnosis

    Design a metrics dashboard for an organic shopping surface, then lay out how to diagnose and experimentally explain why heavy browsing is not turning into purchases.

    Statistics & Experimentsproduct-analyticsdashboard-designfunnel-analysisexperimentation
  • System DesignMediumModel answer
    Build a Time-Zone-Safe Scheduling Backend for Recurring Events

    Design a scheduling service where users in different time zones create, edit and query one-off and repeating events, with correct behavior across daylight saving changes.

    System Designsystem-designcalendartime-zonesrecurrence
  • BehavioralMediumModel answer
    Shipping Under Vague Requirements: A Behavioral Walkthrough

    Explain how you handled a task with missing requirements: surfacing gaps, sorting reversible from irreversible choices, aligning owners, and tying the result to business goals.

    Behavioralbehavioralambiguitystakeholder-managementstar-method
  • Statistics & ExperimentsMediumModel answer
    Ride-Count Churn Under Random Pricing: Two-Ride Starter

    A rider takes two rides on day 1, each fairly priced with probability P. Find the chance of exactly one ride tomorrow and the chance the rider never stops riding.

    Statistics & Experimentsprobabilitymarkov-chainabsorbing-statebinomial
  • BehavioralMediumModel answer
    Ranking Positive Work-Style Statements in a Forced-Choice Test

    Explain how to handle forced-choice work-style items where all three statements are positive, and what consistent engineering profile your Most/Least picks should convey.

    Behavioralbehavioralforced-choicework-styleself-awareness