KatInterview

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

Interview Practice Problems

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

6064
Problems
2246
Auto-graded
15
Topics
274
Added today

Showing 2161–2190 of 3818 results

  • System DesignHardModel answer
    Design a Content Aggregator and Disposable Inbox Service

    Design two systems: a multi-publisher article feed with ranking and client-adaptive APIs, and a temporary email service that generates human-looking addresses with guaranteed uniqueness at scale.

    System Designapi-designcachingdistributed-systemsemail
  • System DesignHardModel answer
    Real-Time Web Communication and Network Protocol Fundamentals

    Evaluate trade-offs between real-time communication approaches and demonstrate understanding of network protocol layers and modern transport mechanisms.

    System Designnetworkingprotocolsreal-timearchitecture
  • BehavioralMediumModel answer
    Delivering Under Pressure While Juggling Competing Priorities

    Describe a situation where a hard deadline and multiple simultaneous demands forced you to triage work, communicate cuts, and stay effective under stress.

    Behavioralprioritizationstakeholder-communicationtime-managementstress-resilience
  • System DesignMediumModel answer
    In-Memory Versioned Store with Snapshot and Compaction

    Build an in-memory key-value store that stages changes, creates atomic snapshots, supports historical queries, and limits retention to K versions.

    System Designversioningstoragesnapshotsgarbage-collection
  • Machine LearningHardModel answer
    Building a Secure RAG System for Legal Document Search

    Design a retrieval-augmented generation pipeline that enables lawyers to query internal memos with verified citations and strict access controls.

    Machine Learningragnlpinformation-retrievalaccess-control
  • Math & Bit ManipulationMediumModel answer
    Square Root by Newton's Method and Odd/Even Index Partitioning

    Implement sqrt from scratch with range reduction plus Newton's method, and rearrange an array in O(1) space so even-positioned values all beat odd-positioned ones.

    Math & Bit Manipulationnewton-methodquickselectin-place-partitionnumerical-precision
  • System DesignEasyModel answer
    Design a Real-Time Guild Chat Platform with Durable History

    Design backend infrastructure for a Discord-like platform with servers, channels, DMs, real-time delivery, message persistence, and strict per-channel ordering at scale.

    System Designreal-timewebsocketsmessage-orderingscalability
  • Machine LearningEasyModel answer
    Fundamentals of KNN and PCA: Theory and Practical Considerations

    Discuss K-Nearest Neighbors and Principal Component Analysis, covering their mechanics, hyperparameter selection, computational challenges, and when each method works well or fails.

    Machine Learningknnpcadimensionality-reductionfundamentals
  • Data Structure DesignMediumModel answer
    Build a FIFO Queue: Compare Linked List, Array, and Ring Buffer

    Implement a queue with enqueue, dequeue, peek, and isEmpty. Compare linked list, dynamic array, and circular buffer approaches.

    Data Structure Designqueuedata-structurescomplexity-analysismemory-management
  • BehavioralMediumModel answer
    Tell me about a project where you made a significant impact

    Articulate a meaningful project you led, covering technical decisions, trade-offs, collaboration challenges, measurable outcomes, and lessons learned.

    Behavioralbehavioralleadershipcommunicationownership
  • Trees & GraphsMediumModel answer
    Trace a Target String Through a Character Grid

    Decide whether a word can be spelled by a non-repeating, four-directional path of adjacent cells in a character matrix, with pruning and complexity analysis.

    Trees & Graphsbacktrackingdepth-first-searchgridpruning
  • Machine LearningMediumModel answer
    Building a Kid-Suitability Filter for Rental Listings

    Design a probabilistic classifier that marks rental listings as suitable for infants and children, covering labeling, features, modeling, evaluation, host gaming, fairness, and cold start.

    Machine Learningml-system-designclassificationtrust-and-safetyfairness
  • Dynamic ProgrammingMediumModel answer
    Stock Trading Profit with Transaction Limits and Fees

    Maximize stock trading profit given a cap on total transactions and a per-sale fee, using a unified DP state machine.

    Dynamic Programmingdynamic-programmingstate-machinegreedy
  • BehavioralMediumModel answer
    Developing Managers and Addressing Performance Issues

    Describe how you've coached a reporting manager through growth and handled underperformance, demonstrating diagnosis, accountability, and leadership leverage.

    Behavioralleadershipmanagementcoachingperformance-management
  • BehavioralEasyModel answer
    Answering Behavioral Questions with Leadership Principles

    Prepare structured responses to common behavioral prompts about overcoming obstacles, unblocking teams, and explaining your motivation using concrete examples and measurable outcomes.

    Behavioralbehavioralleadership-principlesstar-method
  • BehavioralHardModel answer
    Describing Your Learning Process and a Difficult Technical Challenge

    Explain how you acquire unfamiliar skills efficiently and walk through a demanding project you owned, demonstrating learning agility and technical leadership.

    Behaviorallearning-agilityproject-ownershiptechnical-leadership
  • System DesignMediumModel answer
    Fixing Priority Preemption in a GPU Lease Scheduler

    Diagnose why a GPU lease manager preempts the wrong tenant, rewrite victim selection to evict the weakest lease, and design regression tests.

    System Designconcurrencyschedulingdebuggingunit-testing
  • SQL & DataMediumModel answer
    Code Review: Geospatial Data Processing Pipeline

    Evaluate a Python module that computes distances and clusters geographic points from CSV/GeoJSON sources, identifying bugs, performance issues, and production risks.

    SQL & Datacode-reviewgeospatialpythondata-processing
  • System DesignMediumModel answer
    Real-Time Multiplayer Game Backend with Move Reversal

    Architect a scalable backend for a turn-based multiplayer game supporting concurrent matches, move reversal requests, and dynamic player rankings.

    System Designreal-time systemsstateful servicesdistributed systems
  • System DesignMediumModel answer
    Dedupe a Huge Directory Tree with Tiered Hashing

    Design and code a disk-scale deduplicator that filters candidates cheaply, hashes in streams, verifies bytes, and safely hard-links duplicates.

    System Designdeduplicationhashingstreaming-iohard-links
  • System DesignMediumModel answer
    Membership Service for a Growing ID Set: Latency, Memory, Durability

    Design a check-and-insert service for ~1 million user IDs, covering data structure choice, atomic concurrency, probabilistic filters, and crash-safe on-disk storage.

    System Designbloom-filterlsm-treeconcurrencyhashing
  • System DesignMediumModel answer
    Design a Multi-Tenant File Sync and Share Platform

    Design an enterprise file storage service covering resumable chunked uploads, metadata/blob separation, versioning, and inherited permissions.

    System Designsystem-designobject-storagededuplicationaccess-control
  • System DesignMediumModel answer
    Screenshot-to-Component: Building a Token-Driven Card with Chips

    Turn a static card-and-chip screenshot into a tokenized, accessible, responsive component and explain how you'd verify pixel fidelity.

    System Designfrontendaccessibilitydesign-tokensresponsive-layout
  • Machine LearningMediumModel answer
    Building and Deploying an End-to-End Machine Learning System

    Walk through a complete ML system you've owned, from problem definition through production deployment, then discuss resolving technical disagreements.

    Machine Learningml-system-designproduction-mlcross-functional-collaboration
  • System DesignMediumModel answer
    React Internals: Rendering, Effects, Errors, and Concurrency

    Walk through how React reconciles trees, when effects run, how to contain component failures, and what concurrent mode primitives actually buy you.

    System Designreactfrontendhookserror-boundaries
  • Machine LearningEasyModel answer
    Gradient Boosting with Cross-Validation: Train, Evaluate, and Persist

    Build a sklearn Pipeline with gradient boosting, measure generalization via stratified 5-fold ROC-AUC, then refit on all data and save to disk.

    Machine Learninggradient-boostingcross-validationsklearnpipeline
  • BehavioralMediumModel answer
    Tell Me About a Project You Led End to End

    Demonstrate ownership, technical judgment, and measurable impact by walking through a significant project in granular detail across all phases.

    Behavioralleadershipproject-managementtechnical-decisionsimpact
  • Statistics & ExperimentsHardModel answer
    Root-Cause Analysis and Recovery Plan for a Falling Weekly Usage Rate

    A product-analytics investigation of a 7-point drop in weekly active-to-enabled adoption, covering metric hygiene, 24-hour triage, hypotheses, experiments, and causal inference.

    Statistics & Experimentsproduct-analyticsexperimentationcausal-inferencemetric-definition
  • BehavioralHardModel answer
    Engineering Leadership: Ownership, Metrics, and Interpersonal Judgment

    Demonstrate technical ownership, data-driven impact, rapid decision-making under uncertainty, and interpersonal maturity across six structured behavioral prompts.

    Behavioralleadershipownershipconflict-resolutionfeedback
  • System DesignHardModel answer
    Build a Low-Latency Autocomplete System

    Design an autocomplete service that returns ranked suggestions in under 100ms, handling scale, personalization, and freshness.

    System Designautocompletecachingrankingindexing