KatInterview

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

Interview Practice Problems

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

6058
Problems
2243
Auto-graded
15
Topics
272
Added today

Showing 2251–2280 of 3815 results

  • Machine LearningMediumModel answer
    Design an RL-Trained Q&A Assistant with Low-Latency Serving

    Design the full stack for a question-answering assistant: real-time serving, training data collection, RL reward design, and mitigations for reward failure modes.

    Machine Learningrl-from-human-feedbackllm-servingreward-designrag
  • System DesignMediumModel answer
    Designing an isolated notebook execution platform

    Design a multi-tenant cloud notebook platform that runs untrusted user code in isolated sandboxes and streams output, with focus on isolation, lifecycle, persistence and observability.

    System Designsystem-designsandboxingmulti-tenancystreaming
  • System DesignMediumModel answer
    Real-Time Collaborative Text Editing System Design

    Design a multi-user document editor with concurrent edits, convergence, offline reconnect, version history, permissions, and live presence.

    System Designcollaborative-editingcrdtotsystem-design
  • Machine LearningMediumModel answer
    Building a Multi-Model Enterprise AI Research Platform

    Design a production agent system for financial analysts, covering model customization strategies, agent orchestration patterns, structured output enforcement, and multi-tenant serving.

    Machine Learningllm-systemsagent-designfine-tuningproduction-ml
  • System DesignMediumModel answer
    Designing a Live Trivia Elimination Game with Spectator Fan-Out

    Design the backend for a live riddle battle: rooms partitioned by coordinator, server-authoritative timing, crash recovery, and spectator isolation.

    System Designsystem-designpartitioningfailure-recoverypub-sub
  • System DesignHardModel answer
    Byte-Level File Equality and Fleet-Wide Deduplication

    Design a hash-based pipeline to decide if two files hold identical bytes, then scale it to deduplicating content across many machines.

    System Designhashingdeduplicationsystem-designfile-io
  • Data Structure DesignMediumModel answer
    Dynamic Hierarchy Manager with Timestamp Ordering

    Build a system that processes timestamped parent-child updates arriving in any order, maintains a valid tree structure, and prevents cycles.

    Data Structure Designtreesgraphsstate-managementcycle-detection
  • Machine LearningMediumModel answer
    Build an Agent Pipeline to Revise Contracts Against Rule Sets

    Design a system that uses LLMs to automatically rewrite a contract so it satisfies dozens of compliance rules, handling overlaps, conflicts, verification, and cost.

    Machine Learningllm-agentsmulti-step-reasoningedit-trackingverification
  • BehavioralEasyModel answer
    Preparing Structured Answers for Leadership Behavioral Interviews

    Develop clear, evidence-based responses to common leadership and technical-judgment questions using the STAR framework with quantified outcomes.

    Behavioralbehavioralleadershipcommunicationproblem-solving
  • Statistics & ExperimentsMediumModel answer
    Simpson's Paradox, Segregation Metrics, and Fixing Ad Regression

    Explain a classic statistical trap, design spatial metrics for species data, diagnose a causal inference problem, and reduce survey error — all in plain language.

    Statistics & Experimentssimpson's paradoxconfoundingexperimental designmargin of error
  • System DesignMediumModel answer
    Build a Thread-Safe Connection Pool with Lazy Setup

    Design a lazily initialized, concurrency-safe connection pool with a wrapper class that returns connections on close, handles exhaustion via timeout, and supports clean shutdown.

    System Designconcurrencyconnection-poolthread-safetypython
  • BehavioralMediumModel answer
    Telling an Innovation Story with Baseline Metrics

    Frame a self-initiated improvement as a STAR story with quantified pain, a genuinely novel mechanism, stakeholder guardrails, before/after metrics, and an applied lesson.

    Behavioralbehavioralinnovationimpact-metricsstakeholder-influence
  • System DesignMediumModel answer
    Multi-Cloud GPU Scheduler for Machine Learning Workloads

    Build a resource manager that schedules ML training jobs across on-premises and public cloud GPU clusters with fairness, cost optimization, and reliability.

    System Designdistributed-systemsresource-managementschedulingcloud-infrastructure
  • Trees & GraphsMediumModel answer
    Content-Based Duplicate File Detector

    Recursively scan a directory tree, group files by size then content hash, and return every set of two or more paths that hold identical bytes.

    Trees & Graphshashingfile-systemtraversaldeduplication
  • BehavioralEasyModel answer
    Managing a Multi-Party Technical Disagreement

    Walk through a workplace conflict involving peers, leadership, or cross-functional partners, and explain how you drove resolution while preserving relationships.

    Behavioralconflict-resolutionstakeholder-managementleadershipcommunication
  • Statistics & ExperimentsMediumModel answer
    Estimating Feature Impact Without a Holdout Group

    Design a retrospective analysis to measure the causal effect of a payment optimization deployed to all merchants in one region, with no randomized control.

    Statistics & Experimentscausal-inferenceexperimentationobservational-methods
  • Statistics & ExperimentsMediumModel answer
    Bootstrap Confidence Interval for Mean Order Value

    Implement vectorized bootstrap resampling to estimate a 95% confidence interval for the mean of a sample, handling memory constraints efficiently.

    Statistics & Experimentsbootstrapconfidence-intervalsresamplingnumpy
  • Data Structure DesignMediumModel answer
    Design a Five-Card Hand Evaluator with Partial Hand Completion

    Model poker-style five-card hands with an abstract type hierarchy, compare two hands by strength and tie-break, then find the strongest and weakest completions of a partial hand.

    Data Structure Designobject-oriented designclassificationcombinatoricscomplexity analysis
  • System DesignMediumModel answer
    Transaction State Management with External Payment Processors

    Build a service that orchestrates payment transitions through hold, capture, and settlement while handling unreliable gateway responses and ensuring financial correctness.

    System Designdistributed-systemsidempotencystate-machinesfinancial-systems
  • BehavioralMediumModel answer
    Using AI Coding Assistants Responsibly in a Technical Interview

    Describe a concrete, repeatable workflow for leveraging AI coding tools during a live interview while maintaining code quality, security, and full ownership of your work.

    BehavioralAI toolscode reviewsecuritytime management
  • System DesignMediumModel answer
    Build a Token-Auth Fetch-and-Upsert CLI Pipeline

    Design a layered CLI tool that calls a bearer-token API, validates JSON into records, and idempotently upserts them into a relational table.

    System Designhttp-clientidempotencyupserterror-handling
  • Machine LearningHardModel answer
    Design a RAG-Powered Knowledge Assistant with Access Control

    Architect a retrieval-augmented generation system that answers natural language queries over heterogeneous internal documents with strict permissions, low latency, and near-real-time freshness.

    Machine LearningRAGLLMsystem-designinformation-retrieval
  • System DesignHardModel answer
    Five-Year Threat Map for a Search-Ads Giant

    Rank the three biggest five-year threats to a dominant search-and-ads company, pick two tech trends worth tracking, and go deep on one.

    System Designproduct-strategyprioritizationai-agentsmonetization
  • Data Structure DesignMediumModel answer
    Concurrent Task Execution with Type-Level Exclusion

    Build a synchronization mechanism allowing tasks of the same type to run together while blocking tasks of different types from overlapping.

    Data Structure Designconcurrencythreadingsynchronization
  • Statistics & ExperimentsMediumModel answer
    Measuring Social Engagement: Friends vs. Strangers in a Feed

    Design metrics, observational analysis, and experiments to test whether friend content drives stronger social interaction than stranger content in a social feed.

    Statistics & Experimentsexperimentationmetricscausal-inference
  • Statistics & ExperimentsMediumModel answer
    Causal analysis for workplace transportation program rollout

    Design a difference-in-differences study to measure the effect of a staggered employee shuttle program on participation metrics across many sites.

    Statistics & Experimentscausal-inferencedifference-in-differencesexperimental-design
  • Statistics & ExperimentsMediumModel answer
    Detecting Bot Accounts and Measuring Generative Ad Tools

    Design metrics and experiments to evaluate an automated account integrity classifier and a generative AI ad creation tool on a social platform.

    Statistics & Experimentsexperimentationmetricsmachine-learningads
  • Machine LearningHardModel answer
    Designing a Sponsored Product Ranking System for Search

    Design an end-to-end ML pipeline that selects and ranks paid listings in e-commerce search results, balancing advertiser value, user relevance, and platform revenue.

    Machine Learningads rankingrecommendation systemsmulti-task learningauction design
  • Data Structure DesignMediumModel answer
    Defensive Coding: Validate and Harden a Snake Game

    Design an input-validation strategy, error-handling policy, and test suite to protect a Snake game implementation from every class of bad input.

    Data Structure Designvalidationerror-handlingtestingsnake-game
  • System DesignHardModel answer
    Zero Trust Video Delivery: Access Models and Secure Streaming

    Compare VPN, ZTNA, and RBI enforcement models, then design a chunk-level secure streaming pipeline for high-bitrate enterprise video under a Zero Trust policy.

    System Designzero-trustmedia-streamingsecurityCDN