KatInterview

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

Interview Practice Problems

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

6020
Problems
2229
Auto-graded
15
Topics
274
Added today

Showing 901–930 of 3791 results

  • BehavioralMediumModel answer
    Walking Through a System You Built: Architecture Review Prep

    Prepare to present a system you built with a diagram, an end-to-end flow, ownership boundaries, key decisions and alternatives, and how it fails and recovers, without inventing numbers.

    Behavioralarchitecture-reviewtechnical-deep-diveownershipdesign-tradeoffs
  • System DesignMediumModel answer
    Shipping a Persistent Streaming Chat Widget in a React App

    Plan how to build, test and safely release a streaming chat panel in a React dashboard, covering state, request races, token expiry, accessibility, feature flags and rollback.

    System Designreactstreamingfrontend-architecturetesting
  • Heaps, Sorting & SearchMediumModel answer
    Quicksort vs Mergesort: Hardware, Stability and Disk Trade-offs

    Compare two O(n log n) sorts by how they use caches, preserve tie order, resist bad inputs, and behave when data lives on disk instead of in memory.

    Heaps, Sorting & Searchquicksortmergesortstabilitycache-locality
  • System DesignHardModel answer
    Design a Kubernetes-Based Object Metadata Store with Cassandra

    Design an API metadata service on Kubernetes and Cassandra featuring exact-once unique name constraints, soft-delete state transitions, and high-performance read strategies.

    System Designsystem-designcassandrakubernetesdistributed-systems
  • System DesignHardModel answer
    Real-Time Multiplayer Typing Race Backend with Penalty Freezes

    Design a backend for a multiplayer typing race where a mistyped key freezes input for 1.5 seconds, covering match servers, matchmaking, ratings, latency fairness and failure recovery.

    System Designreal-timewebsocketmatchmakingleaderboard
  • System DesignMediumModel answer
    Resilient Streaming Chat Client for Android with MVVM and UDF

    Design a layered Android client for an LLM chat app covering streaming, cancellation, retries, offline history, immutable UI state, and lifecycle and process-death handling.

    System Designandroidmvvmkotlin-coroutinesstateflow
  • System DesignHardModel answer
    Multi-Tenant LLM Fine-Tuning Service on AWS: Platform Design

    Design a managed AWS platform where customers fine-tune open-weight LLMs on their own data, with isolation, budgets, resumable distributed training, evaluation and endpoint deployment.

    System Designml-system-designllm-fine-tuningawsdistributed-training
  • SQL & DataMediumModel answer
    Seller Enforcement Timeline and Repeat-Buyer Product Filters

    Three SQL/pandas tasks: find sellers penalized after a reinstatement, get the first event after the latest reinstatement, and find customers who bought A in 2010 and B in 2018.

    SQL & Datasqlwindow-functionsconditional-aggregationpandas
  • Data Structure DesignMediumModel answer
    Slot Availability Queries on a Sparse Number Line

    Handle an online stream of point-blocking and window-clearance queries on a huge integer line, and return a bit string with one result per query.

    Data Structure Designbinary-searchsorted-structuresfenwick-treecoordinate-compression
  • BehavioralMediumModel answer
    Guarding Quality on AI-Assisted Code Under a PM's Deadline

    Behavioral question on keeping security and correctness standards intact while AI tools speed up a deadline-driven financial feature, and on working with a PM without becoming a blocker.

    Behavioralbehavioralleadershipstakeholder-managementai-assisted-coding
  • System DesignHardModel answer
    Design a Single-Node Durable Key-Value Engine

    Design an embeddable single-node key-value storage engine providing durability, high write throughput, crash recovery, and single-key transactions.

    System Designstorage-enginelsm-treewalconcurrency
  • BehavioralMediumModel answer
    Demonstrate Engineering Impact and Architecture Trade-offs

    Walk through a major technical initiative you led, detailing the problem, evaluated options, trade-offs, stakeholder alignment, and quantified outcomes.

    Behavioralbehavioralsystem-designleadershipimpact
  • Statistics & ExperimentsHardModel answer
    Designing ETA Evaluation Experiments in Networked Two-Sided Markets

    Design and evaluate an experimental framework for an ETA model change in a dynamic dispatch marketplace, accounting for interference, power, and partial compliance.

    Statistics & Experimentsexperiment-designcausal-inferencenetwork-effectsab-testing
  • Stacks & QueuesMediumModel answer
    Build a Stack-Based Mini Language Interpreter in Python

    Write an interpreter that parses a line-based program of LOAD, STORE and integer arithmetic instructions, runs it on an operand stack, and returns the final variable memory.

    Stacks & Queuesinterpreterstackparsingerror-handling
  • Statistics & ExperimentsMediumModel answer
    Diagnose Drop in Completed Marketplace Orders

    A framework to investigate, diagnose, and validate the root causes behind a sustained multi-week decline in completed orders on a two-sided marketplace platform.

    Statistics & Experimentsmarketplace-analyticsroot-cause-analysisexperimentationfunnel-decomposition
  • System DesignMediumModel answer
    Design a Real-Time Sliding Leaderboard for Popular Merchants

    Architect a high-throughput stream processing pipeline to track top-10 global and per-city merchants over a 60-minute trailing window with low latency.

    System Designsystem-designstream-processingleaderboardsliding-window
  • System DesignMediumModel answer
    Secure Multi-Tenant Pipeline for Big Ledger File Processing

    Design a service where enterprise tenants upload files up to 5 GB, which are processed asynchronously into versioned reconciliation reports, with resumable uploads, idempotent jobs, and strict isolation.

    System Designsystem-designmultipart-uploadidempotencyasync-processing
  • Heaps, Sorting & SearchMediumModel answer
    Two-Sided Order Book Matching with Unit Orders

    Simulate a simple exchange: buys and sells of size one arrive in sequence, cross against the best resting price, and you return the total value of all executed trades.

    Heaps, Sorting & Searchheappriority-queuesimulationorder-book
  • System DesignMediumModel answer
    Build a Grounded LLM Item Recommender Endpoint

    Design a natural-language item recommendation endpoint backed by an LLM: request flow, prompt and output schema, retrieval, hallucination and injection controls, evaluation, and monitoring.

    System Designllmragprompt-engineeringhallucination
  • System DesignHardModel answer
    Prefix-Sharing KV Cache for a Greedy Decoding Server

    Add exact, prefix and shared-prefix KV reuse with a token-budgeted LRU to a toy LLM server, cutting prefill cost while every greedy output stays unchanged.

    System Designkv-cachellm-inferencetrielru-cache
  • Statistics & ExperimentsEasyModel answer
    Diagnosing a Sudden Drop in a Marketplace KPI

    Lay out a structured plan for finding out why a core marketplace metric fell over the past one to two weeks, including a day-one versus week-one timeline.

    Statistics & Experimentsroot-cause-analysismetricsfunnel-analysissegmentation
  • BehavioralMediumModel answer
    From Customer Complaints to Shipped Improvements: Weighing Value and Cost

    Describe a time you turned customer feedback into a change you led end to end, and explain how you weigh benefit against cost and resolve conflicts with technical limits.

    Behavioralbehavioralproduct-thinkingroistakeholder-management
  • System DesignMediumModel answer
    Sizing a Fleet to Serve a Large Model to 100M Daily Users

    Plan an inference platform for 100M daily users: estimate traffic, memory, compute and bandwidth, pick hardware, control tail latency, and handle GPU out-of-memory failures.

    System Designml-inferencecapacity-planninggpu-servingtail-latency
  • System DesignMediumModel answer
    Build a Multi-Tenant Time-Series Telemetry Backend

    Design a telemetry backend that ingests about 1M samples per second from many services, answers aggregate queries fast, runs alerts, and keeps data cheaply for months with tenant isolation.

    System Designtime-seriesingestiondownsamplingcardinality
  • System DesignMediumModel answer
    Build a Time-Series Telemetry Platform for Microservice Fleets

    Design a platform that ingests a million telemetry points per second, keeps 30 days of history, and serves dashboard aggregations in under half a second while staying highly available.

    System Designsystem-designtime-seriesingestion-pipelinestorage
  • BehavioralEasyModel answer
    Defending Your Own Technical Project Under Scrutiny

    Present one technical project you led, covering the problem, your own role, how you tested it, the numbers, and where it falls short, and be ready for probing follow-ups.

    Behavioralproject-deep-divecommunicationownershipexperimental-design
  • Data Structure DesignMediumModel answer
    Build an In-Memory File Store with Quotas and Backups

    Implement an in-memory file store with prefix top-N queries, per-user quotas, user merging, and per-user backup and restore that never disturb other users.

    Data Structure Designdata-structure-designhash-mapheapin-memory-storage
  • System DesignMediumModel answer
    Comparing Multithreading and Multiprocessing for Low-Latency Systems

    Analyze thread vs. process execution models at the kernel, memory, and hardware level, and design a low-latency execution topology for an order book trading engine.

    System Designmultithreadingmultiprocessingoperating-systemslow-latency
  • System DesignMediumModel answer
    Streaming Voice Agent Architecture with Barge-In Support

    Design the backend for a conversational voice agent that listens, reasons and speaks in near real time, serves thousands of simultaneous callers, and handles users cutting in mid-reply.

    System Designreal-timestreaminglatencyspeech
  • Data Structure DesignMediumModel answer
    Reversible Wallet Balance Tracker with Undo and Redo

    Design an in-memory wallet class that applies relative changes and absolute resets to an integer-cent balance, with full undo and redo and constant-time operations.

    Data Structure Designdesignundo-redostackscommand-pattern