KatInterview

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

Interview Practice Problems

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

6130
Problems
2273
Auto-graded
15
Topics
275
Added today

Showing 3121–3150 of 6130 results

  • 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
  • Data Structure DesignMediumAuto-graded
    Count-Feature Text Classifier via Command Replay

    Simulate a stateful multinomial Naive Bayes model driven by fit and predict commands, using smoothed log-probabilities and a deterministic tie-break.

    Data Structure Designnaive-bayessimulationlog-probabilitiessmoothing
  • 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
  • Math & Bit ManipulationEasyAuto-graded
    Mean of a Numeric List with Empty-Input Fallback

    Compute the arithmetic mean of a list of numbers, returning 0 for an empty list, testing basic edge-case handling and complexity reasoning.

    Math & Bit Manipulationarraysmathedge-cases
  • 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
  • Arrays & HashingMediumAuto-graded
    Interleave Signs With Stable Order and Trailing Zeros

    Build a new list that alternates positives and negatives (starting positive), keeps same-sign order, appends leftover elements, and places zeros last.

    Arrays & Hashingarraystwo-pointersstable-partitionsimulation
  • Data Structure DesignMediumAuto-graded
    Versioned Lookup Store with Inclusive Range Event Tally

    Simulate a batch of commands on a per-key timestamped value history and an event log, using binary search for point-in-time lookups and inclusive range counts.

    Data Structure Designbinary-searchhash-mapdesignsimulation
  • 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
  • StringsMediumAuto-graded
    Fewest Edits to a Repeating Palindromic Pattern

    Find the minimum character edits so a string becomes both a palindrome and a repetition of a length-k block, by grouping positions into forced-equal classes.

    Stringsstringspalindromeperiodicityequivalence-classes
  • 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
  • Data Structure DesignMediumAuto-graded
    Recency-Evicting Cache Simulator

    Simulate a fixed-capacity key-value store that evicts the least recently used entry, processing a batch of get and put commands in constant time each.

    Data Structure Designhash-mapdoubly-linked-listlru-cachesimulation
  • 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
  • Math & Bit ManipulationMediumAuto-graded
    Correlation Bounds, Equicorrelated Triples, and Box-Muller Sampling

    Compute a feasible correlation interval, give coefficients for three equally anti-correlated variables, and convert uniform values to normals with the Box-Muller transform.

    Math & Bit Manipulationprobabilitycorrelationbox-mullersimulation
  • 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
  • Data Structure DesignMediumModel answer
    Design a Pluggable Payroll Cost Estimator

    Design the types and API that compute an employee's full cost from salary, tax, benefits, and a signed location adjustment, with exact money math, explicit missing-rule handling, and versioned rules.

    Data Structure Designobject-modelingapi-designmoney-handlingconfiguration-versioning
  • System DesignHardModel answer
    Crawl the Web from One Seed Across a 1,000-Machine Fleet

    Design a distributed crawler that starts from one seed URL and spreads work over 1,000 machines, covering coordination, balancing, failure handling, and growth.

    System Designdistributed-systemsweb-crawlerconsistent-hashingfault-tolerance