KatInterview

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

Interview Practice Problems

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

6013
Problems
2228
Auto-graded
15
Topics
273
Added today

Showing 3001–3030 of 3785 results

  • System DesignMediumModel answer
    Building a High-Throughput Request Throttling System

    Design a service that enforces per-client request limits across a distributed application, handling 100k+ QPS with single-digit millisecond latency.

    System Designdistributed-systemsrate-limitingredisscalability
  • BehavioralEasyModel answer
    Drive Cross-Team Alignment on a Shared Technical Dependency

    Describe a time you untangled stalled cross-team technical dependencies and drove teams to a shared outcome without relying on formal authority.

    Behavioralleadershipcross-functionalinfluencealignment
  • System DesignHardModel answer
    Design a Real-Time Multi-Camera Perception System for a Self-Driving Car

    Design an embedded onboard pipeline that ingests eight surround-view cameras and delivers tracked 3D obstacles, free space, and lane geometry to a motion planner within 40 ms.

    System Designautonomous-vehiclesreal-time-systemscomputer-visionembedded-systems
  • Machine LearningHardModel answer
    Real-Time Anomaly Detection System for High-Traffic Platform

    Build a streaming anomaly detection architecture that processes millions of requests per second, handles extreme class imbalance, and maintains feature consistency.

    Machine Learningml-systemsstreamingfeature-engineeringlabeling
  • System DesignHardModel answer
    Multi-Level Key-Value Store with Expiration and Time Travel

    Build an in-memory key-value store supporting CRUD, filtered queries, automatic expiration, and historical lookups across four progressive levels.

    System Designdata-structurestime-seriesversioningttl
  • BehavioralMediumModel answer
    Managing a Global Cross-Functional Team

    How would you lead a geographically dispersed team spanning multiple functions and regions, addressing time zones, cultural differences, and regulatory constraints?

    Behavioralleadershipdistributed-teamscommunicationstakeholder-management
  • System DesignMediumModel answer
    Build a Retry-Safe Task Scheduler for Event Notifications

    Design an async notification system for item availability and due-date reminders with durable idempotency and crash recovery.

    System Designasync-tasksidempotencydistributed-systems
  • System DesignMediumModel answer
    Building a Memory-Efficient Line Deduplication Tool

    Design a command-line tool that removes duplicate lines from files too large to fit in memory, using external sorting or partitioning.

    System Designexternal-memorydeduplicationsortingscalability
  • System DesignMediumModel answer
    Design a Real-Time Stock Availability Service

    Design a distributed inventory service that tracks stock across many locations, handles concurrent reservations without overselling, and pushes availability updates to clients in near real-time.

    System Designdistributed-systemsconcurrencycachingreal-time
  • SQL & DataMediumModel answer
    Build Candlestick Bars from a Raw Price Feed

    Parse a string of price-timestamp ticks, bucket them into fixed-width time windows, compute OHLC stats, and forward-fill any empty windows.

    SQL & Datatime-seriesaggregationdata-manipulationpython
  • Machine LearningMediumModel answer
    End-to-End ML Pipeline with NumPy and Pandas Only

    Build a complete, leak-free machine learning pipeline — preprocessing, training, and evaluation — using only NumPy and pandas, no ML libraries.

    Machine Learningsupervised-learninggradient-descentfeature-engineering
  • System DesignHardModel answer
    Consensus Protocols: Architectural Trade-offs and Implementation

    Contrast two distributed consensus approaches, analyzing their mechanisms for leader election, replication, and fault tolerance to recommend one for a production service.

    System Designdistributed-systemsconsensusfault-tolerancereplication
  • Machine LearningHardModel answer
    Design an NL-to-Formula Assistant for a No-Code Spreadsheet Tool

    Design an ML system that converts natural-language requests into validated formula expressions grounded in a live table schema, with optional write-back to the data source.

    Machine Learningllm-orchestrationschema-groundingstructured-outputprompt-engineering
  • Machine LearningHardModel answer
    Predicting Delivery Lateness Risk for a Food Delivery Platform

    Design an ML system to forecast whether orders will arrive after their promised time, covering feature engineering, temporal validation, calibration, and production deployment.

    Machine Learningml-system-designclassificationtemporal-datacalibration
  • BehavioralMediumModel answer
    Analyzing and Resolving a Complex Technical Problem

    Discuss a challenging situation where you investigated a problem systematically, evaluated multiple solutions, and verified your approach worked.

    Behavioralbehavioralproblem-solvingtechnical-leadership
  • Data Structure DesignMediumModel answer
    Build a Tree System with LRU Cache and Command History

    Design a data structure for a tree where nodes can be read, modified, and traversed, with an LRU cache for fast access and an undo stack for reverting changes.

    Data Structure Designlru-cachetree-traversalcommand-patternundo-redo
  • Statistics & ExperimentsMediumModel answer
    Marketplace Pricing Test with Supply-Demand Interactions

    Design an experiment to test a pricing change in a two-sided marketplace where users interfere with each other through shared supply.

    Statistics & Experimentsexperimentationcausal-inferencenetwork-effectsmarketplace
  • System DesignMediumModel answer
    Real-Time Metrics Dashboard Architecture

    Build a dashboard that shows time-series metrics with clear separation between data ingestion delay and query response time.

    System Designmonitoringtime-seriesdata-ingestionreal-time-systems
  • System DesignMediumModel answer
    Design a Social Media Activity Feed at Scale

    Design the core feed delivery system for a social platform, focusing on how to balance write amplification against read latency for users with vastly different follower counts.

    System Designfeed generationfan-outcachingdistributed systems
  • BehavioralMediumModel answer
    Getting Nontechnical Stakeholders to Back an Engineering Investment

    Walk through how you translated a technical initiative into business terms, navigated skepticism, and verified real adoption with nontechnical stakeholders.

    Behavioralstakeholder managementtechnical communicationcross-functional influence
  • Statistics & ExperimentsMediumModel answer
    Evaluating Performance Benchmark Results for Regressions

    Determine if performance measurements indicate a real regression, known limitation, or normal noise through systematic validation and evidence-based criteria.

    Statistics & Experimentstestingperformancequality-assurancestatistical-analysis
  • Greedy & IntervalsMediumModel answer
    Peak Active Couriers: Sweep-Line with Per-Worker Deduplication

    Given delivery records with overlapping intervals per courier, find the maximum number of distinct couriers working simultaneously using a sweep-line algorithm.

    Greedy & Intervalssweep-lineintervalsdeduplicationsorting
  • BehavioralEasyModel answer
    Fostering Inclusion Through Action

    Discuss a concrete example where you identified and addressed barriers to inclusion, explaining your approach, the outcome, and lessons learned.

    Behavioralbehavioralleadershipcommunicationimpact
  • Machine LearningMediumModel answer
    Core ML and LLM Concepts for Production Systems

    Explain key machine learning and large language model concepts including metrics, model types, benchmarking, inference optimization, and deployment considerations.

    Machine Learningmachine-learningllmproductionevaluation
  • Statistics & ExperimentsMediumModel answer
    Diagnosing Revenue Growth Alongside Declining User Sentiment

    Ad revenue is climbing while user satisfaction drops; identify the root cause, validate metrics, form hypotheses, design experiments, and recommend trade-offs.

    Statistics & Experimentsmetricsproduct-analyticsexperimentationcausality
  • System DesignHardModel answer
    Real-Time Ranking Service for Competitive Gaming Platforms

    Build a backend that handles millions of score updates per second, returns a player's exact position plus surrounding ranks in milliseconds, and supports friend-only views.

    System Designleaderboardsscalabilityrankingreal-time-systems
  • Statistics & ExperimentsMediumModel answer
    Evaluate a Geo-Social Feature Launch with Causal Rigor

    Design an experiment to measure whether a community-content feature drives meaningful engagement, accounting for geographic interference, opt-in bias, and clustering effects.

    Statistics & Experimentsexperimentationcausal inferencenetwork effectsmetric design
  • BehavioralMediumModel answer
    Describing Your Approach to Product Quality and Adaptability

    Demonstrate how you maintain user experience standards, respond to shifting requirements, and align personal goals with organizational mission through concrete examples.

    Behavioralcommunicationproduct-thinkingadaptabilityuser-experience
  • System DesignMediumModel answer
    Rank Trending Content Across a Multi-Tenant Platform

    Design a low-latency system that returns the top-N pieces of content per workspace, ranked by a weighted engagement score, over rolling time windows.

    System Designstreamingaggregationcachingtime-windows
  • Machine LearningMediumModel answer
    Building a Safety Layer for Medical Text Generation

    Design a system to detect and prevent fabricated information in AI-generated clinical summaries, addressing severe class imbalance in the detection model.

    Machine Learningllmclass-imbalancehealthcarerag