KatInterview

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

Interview Practice Problems

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

6057
Problems
2242
Auto-graded
15
Topics
273
Added today

Showing 2281–2310 of 3815 results

  • System DesignHardModel answer
    Build a Near-Real-Time Environmental Data Feed API

    Design a platform that polls an external sensor API hourly for ~2,000 U.S. locations and serves current readings with a strict 10-minute freshness guarantee.

    System Designingestion-pipelinecachingrate-limitingidempotency
  • Trees & GraphsMediumModel answer
    Find the Longest Path in an Undirected Tree

    Given a tree as an adjacency list, return the sequence of nodes forming its diameter — the longest simple path between any two nodes.

    Trees & GraphsBFSDFStree diameterpath reconstruction
  • System DesignMediumModel answer
    Investigating Latency Spikes After Traffic Doubles

    Diagnose and resolve severe performance degradation in a distributed system after user load doubles, using observability and root-cause analysis.

    System Designperformanceobservabilitydistributed-systemscaching
  • Machine LearningHardModel answer
    Design a Recommendation Engine with a Conversational Layer

    Design a personalized recommender from scratch, then add a chatbot that surfaces and explains those recommendations without hallucinating unavailable items.

    Machine Learningrecommendation systemsretrievalLLMsystem design
  • System DesignMediumModel answer
    Design a Competitive Programming Practice Platform

    Design a scalable web platform where users can browse coding problems, run code in a sandboxed environment, and receive automatic judgement across multiple languages.

    System Designsystem-designdistributed-systemscode-executionsandboxing
  • BehavioralMediumModel answer
    Tell Me About the Most Complex Project You Delivered End to End

    Describe a large, cross-functional project you owned: scope, design trade-offs, collaboration, risks, results, and honest lessons learned.

    Behavioralownershipcross-functional collaborationtrade-offsproject management
  • Heaps, Sorting & SearchHardModel answer
    Rolling Window Median Bounds + Binary Array Tiling

    Find the max and min sliding-window medians in O(n log k), then partition a binary array into even uniform segments with minimum flips.

    Heaps, Sorting & Searchsliding windowheapdynamic programmingbinary array
  • Statistics & ExperimentsMediumModel answer
    Design an Experiment to Measure a New Feature's Effect on Engagement

    Plan a controlled experiment to test whether a recommendation feature increases engagement, including metric selection, sample sizing, and bias mitigation.

    Statistics & ExperimentsA/B testingexperimentationmetricscausal inference
  • Statistics & ExperimentsMediumModel answer
    Diagnose a Simultaneous Rider Drop and Rising Wait Times

    Investigate two correlated marketplace regressions — falling monthly active riders and longer pickup waits — using structured decomposition and causal reasoning.

    Statistics & Experimentsroot-cause analysismarketplace metricssupply-demandmetric decomposition
  • System DesignMediumModel answer
    Design a Resilient AI Chat Service with Streaming and Failover

    Build a customer-facing chat platform powered by a third-party LLM, handling streaming responses, network interruptions, and provider outages gracefully.

    System Designreal-timemessagingerror-handlingstreaming
  • Arrays & HashingMediumModel answer
    Layered Invoice Processor with Discounts, Tax, and FX

    Build a multi-part order cost engine that handles input validation, per-item discounts, order-level tax, multi-currency conversion, and banker's rounding.

    Arrays & Hashingdata-processingdecimal-arithmeticinput-validationsorting
  • Data Structure DesignHardModel answer
    Build a Subscription Pattern Recognition Engine

    Create a system that discovers recurring billing patterns in transaction data, handling merchant name variations, timing drift, and price changes.

    Data Structure Designpattern-recognitiondata-processingheuristics
  • Data Structure DesignMediumModel answer
    Build an In-Memory Promo Code Service

    Design and implement a class that creates, validates, and redeems promotional discount codes with expiry, global and per-user limits, and idempotent retries.

    Data Structure Designhash-mapexpirationidempotencyconcurrency
  • Machine LearningMediumModel answer
    Diagnosing and Fixing a Degraded Forecasting System

    Debug a time-series forecasting system experiencing accuracy decline by isolating failures, measuring impact, and implementing fixes.

    Machine Learningml-systemstime-seriesdebuggingevaluation
  • System DesignMediumModel answer
    Rate Limiting an API Under Active Abuse

    Design a layered rate limiter that blunts a traffic flood while keeping legitimate clients and anonymous users productive.

    System Designrate-limitingdistributed-systemsdenial-of-servicesystem-design
  • Data Structure DesignMediumModel answer
    Design a Multiset Trie with Fast Prefix Counting

    Build a trie that tracks word multiplicities, supports insertion, deletion, exact and prefix lookup, and handles Unicode safely.

    Data Structure Designtriedata-structuresconcurrencyunicode
  • System DesignMediumModel answer
    Design a Live Multi-User Document Editor

    Design the client and server for a collaborative text editor where multiple users edit the same document simultaneously and see each other's changes in near real time.

    System Designcollaborative editingoperational transformationCRDTsreal-time sync
  • BehavioralHardModel answer
    Realigning a Team When a Deadline Moves and Scope Is Disputed

    Walk through a specific project where an earlier deadline forced a scope negotiation among disagreeing stakeholders, and explain how you drove the team to a concrete decision.

    Behavioralstakeholder managementscope negotiationleadership under pressure
  • BehavioralEasyModel answer
    Career Vision, Manager Expectations, and Team Dynamics

    Articulate your 3–5 year growth trajectory, define effective managers and teams, and explain how you drive decisions with data in ambiguous environments.

    Behavioralleadershipcareer-developmentcollaborationinfluence
  • System DesignHardModel answer
    Build a High-Throughput File Storage Backend

    Design a backend system that ingests and serves large files at scale, handling millions of users with high availability and durability guarantees.

    System Designdistributed-systemsstorageCDNscalability
  • Dynamic ProgrammingMediumModel answer
    Digit-Sum Frequency Peaks

    Count how many digit-sum values tie for the most occurrences among integers 1 through n.

    Dynamic Programmingdigit-dpcombinatoricsmath
  • Data Structure DesignMediumModel answer
    Build a Nested-Transaction Key–Value Store from Scratch

    Design and implement an in-memory key–value store that supports arbitrarily nested BEGIN/COMMIT/ROLLBACK transactions with correct shadowing and O(1) reads.

    Data Structure Designhash-mapstacktransactionsundo-log
  • Machine LearningMediumModel answer
    Two-Stage Embedding Retrieval for a Rental Marketplace

    Design a two-tower embedding retrieval plus ranking system for vacation rentals, covering representations, labels, bias correction, and evaluation.

    Machine Learningrecsystwo-towersemantic-searchposition-bias
  • BehavioralMediumModel answer
    Delivering Under Pressure and Navigating Ambiguity

    Two-part senior behavioral question on tight-deadline delivery and handling a difficult situation where the right path wasn't immediately clear.

    Behavioralprioritizationstakeholder communicationdecision-making under pressurescope negotiation
  • BehavioralMediumModel answer
    Demonstrating Motivation, Adaptability, and Handling Uncertainty

    Explain why you're interested in a specific role and environment, how you've joined new teams successfully, and how you've navigated unclear requirements.

    Behavioralmotivationadaptabilityambiguitybusiness-alignment
  • Statistics & ExperimentsMediumModel answer
    Estimate Revenue for a Visual Commerce Feature

    Build top-down and bottom-up revenue models for a new shopping feature, stress-test key assumptions, and design three charts that guide an investment decision.

    Statistics & Experimentsestimationsensitivity-analysisbusiness-metrics
  • System DesignMediumModel answer
    Spark Abstractions: RDDs, DataFrames, Spark SQL, and Cloud Execution

    Explain the trade-offs between Spark's core APIs, how Spark improves on MapReduce, the role of lazy evaluation, and practical job submission on a managed cluster.

    System Designsparkdistributed-systemsdata-engineering
  • BehavioralMediumModel answer
    Reflecting on Project Leadership and Planning Decisions

    Describe a major project you owned, its business impact, execution across multiple months, and specific improvements you'd make to your planning approach.

    Behavioralleadershipproject-managementself-reflection
  • BehavioralMediumModel answer
    Driving Product Quality as a Technical Lead

    Plan execution, define quality metrics, diagnose root causes, and deliver measurable impact while balancing feature velocity with engineering health.

    Behavioralleadershipproduct-qualitystakeholder-management
  • BehavioralEasyModel answer
    Navigate Deadlines, Pride, and Team Conflict

    Demonstrate time management, ownership, and conflict-resolution skills through structured stories from your own experience.

    BehavioralbehavioralSTARcommunicationconflict-resolution