KatInterview

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

Interview Practice Problems

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

6013
Problems
2228
Auto-graded
15
Topics
276
Added today

Showing 751–780 of 3785 results

  • Statistics & ExperimentsHardModel answer
    Measuring Lift from a Hand-Enrolled Sponsored Search Pilot

    Evaluate a small hand-enrolled pilot of a new search ad format: define the estimand, reduce variance, test robustly on skewed revenue, check cannibalization, and explain why gains won't scale linearly.

    Statistics & Experimentscausal-inferencevariance-reductionpermutation-testbootstrap
  • Data Structure DesignHardModel answer
    Design an In-Memory Recipe Storage Engine

    Design and implement an in-memory storage manager supporting CRUD operations, custom identifier parsing, case-insensitive uniqueness, and controlled renames.

    Data Structure Designdesign-dsarraysstrings
  • Statistics & ExperimentsHardModel answer
    Diagnosing a Drop in Unsafe-Site Interstitial Counts

    Work out why the number of unsafe-site interstitials shown to users fell, and tell a real safety gain apart from a detection, delivery, or logging failure.

    Statistics & Experimentsroot-cause-analysismetricsfunnel-decompositionanomaly-investigation
  • Statistics & ExperimentsHardModel answer
    Presenting Unlicensed Software Telemetry and Revenue Impact to Product

    Interpret time-series analytics on unlicensed asset usage, separate logging artifacts from true merchant behavior, address censoring biases, and advise product leaders on next steps.

    Statistics & ExperimentsTime-SeriesData QualityMetricsExperimentation
  • Machine LearningMediumModel answer
    Building a Fast Key-Value Cache for LLM Token Generation

    Explain and design a per-layer key/value cache for decoder-only LLM generation, covering batching, branching, long contexts, memory and kernel performance, precision, and common correctness bugs.

    Machine Learningtransformerskv-cachellm-inferenceattention
  • Machine LearningMediumModel answer
    Teaching an LLM to Flag Questions Past Its Knowledge Horizon

    Design a way for a language model to spot questions that need information newer than its training data and to tell the user clearly where its knowledge stops.

    Machine Learningllmcalibrationabstentionfine-tuning
  • Arrays & HashingMediumModel answer
    Fix a Failing Budget-Check Module and Add Regression Tests

    Debug a small spending-limit module with failing tests: find root causes, fix them, add minimal regression tests, and explain your debugging process and tools.

    Arrays & Hashingdebuggingunit-testingroot-cause-analysisfloating-point
  • Machine LearningMediumModel answer
    Choosing Metrics, Penalties, and Ablations for an NLP Model

    Compare classifier evaluation metrics, contrast L1 and L2 penalties, and plan a controlled ablation study that isolates which pipeline components drive an NLP system's quality.

    Machine Learningevaluation-metricsregularizationablation-studyroc-auc
  • System DesignMediumModel answer
    Choosing a Concurrency Model for a CPU-Heavy Image Resizer

    Decide between threads, processes, or a hybrid for a CPU-bound image preprocessing service, weighing memory, GIL limits, IPC cost, crash isolation and how to benchmark.

    System Designconcurrencythreads-vs-processesshared-memorygil
  • BehavioralMediumModel answer
    Motivation and Safety Views for an AI Lab Recruiter Call

    Prepare structured, honest answers on why you want to move to an AI lab, what AI safety means to you, misuse risks, and how your experience connects to safety work.

    Behavioralbehavioralai-safetymotivationrecruiter-screen
  • Machine LearningHardModel answer
    Safely Retiring an Incumbent Ad-Ranking Model

    Plan an end-to-end migration from a legacy ad-ranking model to a new one, covering offline validation, off-policy estimates, staged online rollout, conflicting-metric decisions and production risks.

    Machine Learningads-rankingoff-policy-evaluationab-testingmodel-rollout
  • System DesignMediumModel answer
    Building a Flash-Sale Seat Booking Platform

    Design a booking backend for hot live events that never double-sells a seat, holds seats briefly during checkout, guarantees tickets after successful payment, and fairly offers released seats to a waitlist.

    System Designsystem-designconcurrencydistributed-systemspayments
  • BehavioralMediumModel answer
    Sequencing Competing Urgent Engineering Work Under Pressure

    Behavioral question: describe how you triaged several urgent engineering tasks, told stakeholders about the trade-offs, and re-planned when a new emergency arrived.

    Behavioralprioritizationstakeholder-communicationtriagestar-method
  • BehavioralMediumModel answer
    Adapting Communication to Interviewer and Stakeholder Needs

    Demonstrate emotional intelligence and effective communication by adapting your technical depth based on stakeholder and interviewer cues.

    Behavioralbehavioralinterpersonal-skillsstakeholder-managementcommunication
  • System DesignMediumModel answer
    Unified Shipping Platform Across Several Courier Services

    Design a backend that lets a retailer rate, buy labels, and track parcels across multiple couriers behind a single internal API, with safe retries and fault isolation.

    System Designsystem-designapi-designidempotencythird-party-integration
  • Data Structure DesignHardModel answer
    Reframing Chunked Async Reads into Length-Prefixed Frames

    Turn an async sequence of arbitrarily split byte chunks into complete frames, each preceded by a 4-byte big-endian length, while handling truncation and oversized lengths.

    Data Structure Designstreamingstate-machineasyncbinary-parsing
  • BehavioralHardModel answer
    Walking Through Your Service's Scope, Data, and Dependencies

    Describe a system you built: its responsibilities and non-responsibilities, how its data was shared with other teams, a risky upstream dependency, and a boundary problem you personally solved.

    Behavioralbehavioralservice-boundariesdata-ownershipdependencies
  • System DesignHardModel answer
    Designing a Firmware Telemetry and Automated Release Validation Platform

    Design a scalable architecture for validating hardware telemetry, enforcing schema contracts, and orchestrating automated rollout/rollback decisions based on fleet health metrics.

    System Designsystem-designtelemetrystreamingrelease-engineering
  • System DesignHardModel answer
    Resilient Rate Control and Recovery for Distributed LLM Pipelines

    Design a rate-aware ingestion engine and fault-tolerant checkpointing architecture for massive LLM DAG workflows facing strict provider quotas and ambiguous request failures.

    System Designsystem-designdistributed-systemsfault-tolerancerate-limiting
  • System DesignMediumModel answer
    Walk Through and Defend the Architecture of a System You Built

    Explain a production service you own end to end, then defend its data flow, storage, failure handling and trade-offs as an interviewer probes the weakest points.

    System Designsystem-designtechnical-deep-divearchitecturetrade-offs
  • Data Structure DesignMediumModel answer
    Concurrent Micro-Batching Writer with Backpressure and Timed Flush

    Build a thread-safe buffer that accepts records from many producers and writes them to a database in batches, triggered by size, age of the oldest record, or shutdown, without holding locks during I/O.

    Data Structure Designconcurrencycondition-variablesbackpressurebatching
  • System DesignMediumModel answer
    Triaging an Outage from Giant Logs, Then Building Log Search

    Find the cause of a production failure using only SSH and huge log files, then design a centralized logging platform and justify the storage and cost trade-offs.

    System Designloggingobservabilityincident-responselinux-cli
  • Statistics & ExperimentsMediumModel answer
    Game Plan for a 30-Question Speed Probability Test

    Design a concrete strategy for a strictly timed probability and statistics quiz: pacing, question ordering, guessing policy, answer checks, and which techniques to master.

    Statistics & Experimentsprobabilitytime-managementmental-mathtest-strategy
  • BehavioralMediumModel answer
    Walk Through Your Hardest Engineering Project End to End

    Tell the story of the most demanding project you have shipped, showing what made it hard, what you personally decided and built, the tradeoffs involved, and how you know it worked.

    Behavioralbehavioralproject-deep-diveownershiptradeoffs
  • BehavioralMediumModel answer
    Describe a Complex Engineering Problem You Solved and What You Learned

    Learn how to answer behavioral questions about technical challenges by structuring your response around trade-offs, analytical methods, metrics, and actionable reflections.

    Behavioralbehavioralproblem-solvingincident-responsesystem-reliability
  • BehavioralMediumModel answer
    Answering "Why Move On, and Why This Team?" in a Screen

    Craft a concise, honest answer on why you're open to a new role now and why this opportunity fits, backed by research and with sensible open questions.

    Behavioralbehavioralmotivationrecruiter-screencareer-narrative
  • System DesignMediumModel answer
    Processes vs Threads: Trade-offs and When to Use Each

    Explain how OS processes and threads differ in isolation, scheduling, switching cost, communication, failure and security, and justify which to choose for real production services.

    System Designoperating-systemsconcurrencyprocessesthreads
  • Data Structure DesignMediumModel answer
    Build a Shutdown-Aware Producer/Consumer Queue in C++

    Design a generic, thread-safe C++ queue where consumers block when it is empty and a shutdown call releases every waiting thread once the remaining items are drained.

    Data Structure Designcppconcurrencymutexcondition-variable
  • Heaps, Sorting & SearchMediumModel answer
    Exact Mode, Median and Balanced Sort Over Ten Message-Passing Nodes

    Integers live on ten machines that can only exchange messages. Write per-node programs for the exact mode, the median and a balanced global sort while sending as little data as possible.

    Heaps, Sorting & Searchdistributed-systemsmapreducesample-sortselection
  • System DesignEasyModel answer
    Build a Scheduled Hourly Feed of Public Weather Observations

    Design a pipeline that polls a public weather provider for thousands of locations each hour, stores normalized history without duplicates, and serves fresh data reliably.

    System Designsystem-designdata-ingestionschedulingrate-limiting