KatInterview

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

Interview Practice Problems

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

6077
Problems
2253
Auto-graded
15
Topics
271
Added today

Showing 1861–1890 of 3824 results

  • System DesignMediumModel answer
    Seatback Music and Flight-Tracker App for a Tiny Armrest Display

    Design a resilient, accessible, modular seat-unit app on a 4-inch armrest touchscreen, covering telemetry delivery, offline music sync, shake-tolerant input, lazy module loading and KPIs.

    System Designclient-architectureoffline-firstaccessibilityui-design
  • BehavioralMediumModel answer
    Walk Through a Major System You Built: Design, Decisions, Results

    Present one substantial past project end to end: the problem, your role, the architecture, the hard problems you debugged, the trade-offs, the measured results, and your hindsight.

    Behavioralproject-deep-divearchitecturetradeoffsownership
  • Math & Bit ManipulationMediumModel answer
    Back-Calculating a Kayak Trip's Start Time from River Speeds

    Two paddlers' first-day upstream and downstream legs fix their paddling speed. Use it to find when they must leave on day two to reach a point 23 miles upstream by 16:00.

    Math & Bit Manipulationword-problemrelative-velocityrate-time-distancealgebra
  • Statistics & ExperimentsMediumModel answer
    Causal Effect of a Smart Display Purchase on Calling Time

    Design a staggered difference-in-differences analysis to measure how buying a calling device changes usage, handling self-selection, household spillover, and parallel-trends validation.

    Statistics & Experimentsdifference-in-differencescausal-inferencestaggered-adoptionselection-bias
  • System DesignMediumModel answer
    Build a Log Collection REST Service for a Fleet of Cameras

    Design and code a small HTTP service where cameras push log entries and users fetch them by camera, time range, or severity, with validation, status codes, and thread safety.

    System Designrest-apiflaskhttp-status-codesconcurrency
  • StringsMediumModel answer
    Three Compiler Defects in a Mini Template Engine: Debug and Test

    Diagnose three failures in a small Python template-to-source compiler: a lost ternary branch, a directory returned as a template, and a comment-only loop body, then fix each and add a regression test.

    Stringsdebuggingcode-generationastregression-testing
  • Machine LearningHardModel answer
    Building a Home Valuation Model for a Metropolitan Housing Market

    Design a production ML system that estimates residential sale prices across a large city, covering features, leakage-safe validation, modeling, fairness, deployment and error analysis.

    Machine Learningml-system-designgeospatialfeature-engineeringcross-validation
  • Heaps, Sorting & SearchMediumModel answer
    Batched Notification Sender with Cooldown-Aware Retries

    Push messages through a provider that accepts at most 5 per call, and retry each failure only after its own cooldown expires, with an attempt cap and no busy-waiting.

    Heaps, Sorting & Searchbatchingpriority-queueretry-schedulingmin-heap
  • Data Structure DesignMediumModel answer
    Audit a Flawed Proximity-Search Module in Python

    Review a small Python module for finding and labeling nearby places, spotting correctness, speed and design problems, then propose and justify concrete refactors.

    Data Structure Designcode-reviewpythongeospatialhaversine
  • BehavioralMediumModel answer
    Supporting Teammates and Staying Effective Under Pressure

    A behavioral prompt on how you unblock colleagues, perform during high-pressure periods, balance helping with your own work, and turn each experience into measurable results and lessons.

    Behavioralbehavioralcollaborationstress-managementprioritization
  • System DesignMediumModel answer
    Live Fleet Proximity Lookup with Eligibility Filters

    Design a service that ingests per-second robotaxi telemetry and answers low-latency radius searches filtered by vehicle eligibility, tolerating late and duplicate packets.

    System Designgeospatial-indexstreaming-ingestionkafkah3
  • BehavioralHardModel answer
    Building a Story Bank for Product Manager Leadership Interviews

    Learn how to turn a handful of real career stories into strong answers for 40+ leadership-style behavioral prompts, using a weighted STAR format and handling follow-up probes.

    Behavioralbehavioralproduct-managementleadership-principlesSTAR
  • Statistics & ExperimentsMediumModel answer
    Testing a Faster Pickup-Time Algorithm in a Ride Marketplace

    Design a valid experiment for a pickup-time estimate improvement in a two-sided marketplace, diagnose a surprising conversion drop, and handle supply interference between arms.

    Statistics & Experimentsab-testingswitchbackinterferencemarketplace
  • Trees & GraphsMediumModel answer
    Concurrent Site Crawler with Fault-Tolerant Fetching

    Build a crawler that explores every page reachable from a seed URL using a slow, flaky link API, evolving from a sequential traversal to a thread pool with bounded, backoff-driven retries.

    Trees & Graphsweb-crawlerconcurrencybfsretries
  • System DesignMediumModel answer
    Building a Concurrent Per-Client Throttling Service at Scale

    Design a throttling component that caps each client's request rate under heavy concurrency and millions of checks per second, then extend it across many servers.

    System Designrate-limitingtoken-bucketconcurrencydistributed-systems
  • Machine LearningMediumModel answer
    Why LLM Servers Store Past Keys and Values During Decoding

    Describe how attention-state caching works in decoder-only LLM serving: what is stored, why it speeds up generation, memory costs, and the production techniques that manage it.

    Machine Learningtransformersllm-inferencekv-cacheattention
  • Statistics & ExperimentsMediumModel answer
    Break-Even Analysis for a Merchant-Funded Card Discount Promo

    Assess a bank's 30%-off co-marketing offer with a rental merchant: structures, pre-launch factors, metrics, break-even math, risks, and a launch recommendation.

    Statistics & Experimentsbreak-even analysisincrementalityexperiment designunit economics
  • System DesignMediumModel answer
    Merchant Catalog Service: Full-Dump Feeds and Pinned Admin Edits

    Design a catalog service fed by full retailer snapshot files, serving 11,000 QPS under 400 ms, where admin attribute overrides persist through retailer updates and deletions.

    System Designsystem-designdata-modelingingestion-pipelinecaching
  • System DesignMediumModel answer
    Designing a Document Q&A Retrieval Backend with Pluggable Grading

    Design a RAG ingestion pipeline, a swappable response-grading component using dependency inversion, and an efficient top-k structure for ranking retrieved chunks.

    System Designragvector-databasesoliddependency-inversion
  • System DesignMediumModel answer
    Design a Recurring Task Scheduler That Never Skips a Run

    Design a service that stores 100K recurring cron-style tasks, keeps up to 10K runs in flight, and guarantees each scheduled fire executes at least once despite crashes.

    System Designsystem-designschedulercronat-least-once
  • Statistics & ExperimentsMediumModel answer
    Dart Throw Scoring with Gaussian Scatter and Concentric Rings

    A dart lands with an isotropic Gaussian scatter around the center. Use one known hit probability to get exact ring probabilities and the expected score as a fraction.

    Statistics & Experimentsprobabilitybivariate-normalrayleigh-distributionexpected-value
  • System DesignHardModel answer
    Product Review Platform with Helpful Votes and Author Payouts

    Design a high-traffic product review service with idempotent helpful-votes, scalable counters, ranking, abuse defenses and an exact, auditable author reward flow.

    System Designsystem-designidempotencydistributed-countersranking
  • System DesignHardModel answer
    Building a Pipeline to Curate Math Training Data from Web Crawls

    Design a daily batch pipeline that turns 100 TB of noisy HTML, PDF and image crawl data into a deduplicated, safe, high-rigor mathematical text corpus for LLM pretraining.

    System Designml-system-designdata-pipelineocrdeduplication
  • Heaps, Sorting & SearchMediumModel answer
    Cost of Core Data Structure Ops and When Threads Hurt

    Give worst-case Big-O for four common array, hash table and heap operations, then explain why adding threads does not always speed a program up, with concrete counterexamples.

    Heaps, Sorting & Searchbig-ohash-tableheapmultithreading
  • Statistics & ExperimentsMediumModel answer
    Auditing an A/B Assignment and Free-Trial Trigger Script

    Review a script that randomly splits users into experiment arms and sends a free-trial offer, then list its bugs and data risks and propose a safer, reproducible design.

    Statistics & Experimentsexperimentationcode-reviewidempotencyrandomization
  • Heaps, Sorting & SearchMediumModel answer
    Fixed-Width Window Totals and Rolling Median Over a Stream

    Find the best sum over any run of k adjacent numbers, then track the median of the latest k values in a live stream, discussing data structures, parallelism and trade-offs.

    Heaps, Sorting & Searchsliding-windowtwo-heapsmedianlazy-deletion
  • BehavioralMediumModel answer
    React Rendering Deep Dive and a Re-render Fix Walkthrough

    Explain how React decides to render, reconcile and commit updates, then present a measured example of finding and fixing a rendering performance or correctness bug in a real app.

    Behavioralreactrenderingperformancereconciliation
  • System DesignHardModel answer
    Building a Partitioned, Replicated Append-Only Log Store

    Design the storage tier of a distributed commit log: partitions, segments, indexes, compaction, leader/follower replication, retention, and crash recovery.

    System Designdistributed-logsreplicationpartitioningcompaction
  • Data Structure DesignMediumModel answer
    Weighted Random Picker for Unbounded Integer Scores

    Build a picker that returns an item with probability proportional to its weight, even when weights and their total exceed 32-bit or 64-bit limits, and discuss precision and memory trade-offs.

    Data Structure Designrandomized-algorithmsprefix-sumbinary-searchalias-method
  • Machine LearningHardModel answer
    Building an Enterprise Document Q&A Assistant with Retrieval

    Design a production retrieval-augmented question-answering service over company documents, covering indexing, search, grounding, freshness, access control, evaluation and operations.

    Machine Learningragretrievalembeddingsllm