KatInterview

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

Interview Practice Problems

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

6070
Problems
2251
Auto-graded
15
Topics
273
Added today

Showing 4231–4260 of 6070 results

  • Trees & GraphsMediumAuto-graded
    Minimum Travel Cost with Layover Limit

    Tests weighted shortest-path reasoning under a hard constraint on the number of edges traversed, requiring a round-bounded relaxation strategy.

    Trees & Graphsgraphsbellman-fordshortest-path
  • SQL & DataMediumModel answer
    Predicting the Output of a Join + Aggregate + Window Query

    Read a multi-clause SQL query against two small tables and state exactly which rows come back, with each column value, traced stage by stage.

    SQL & Datasqljoinswindow-functionsnulls
  • System DesignMediumModel answer
    Design a Threaded Annotation Layer for a Live Collaborative Canvas

    Design the backend and real-time infrastructure for a threaded comment system that pins to canvas coordinates or live objects on a shared infinite whiteboard.

    System Designreal-timewebsocketsfan-outpub-sub
  • BehavioralMediumModel answer
    Own It, Ship It, Earn It: Behavioral Stories That Hold Up Under Pressure

    Craft concrete, principle-driven stories about ownership, decisive action, and customer focus that stay credible when an interviewer drills three levels deep.

    BehavioralleadershipownershipSTARbehavioral
  • Math & Bit ManipulationMediumModel answer
    Integer Sequence Rule Inference and Next-Term Prediction

    Design a systematic program that detects the governing rule of an integer sequence and predicts the next k terms, ranked by plausibility.

    Math & Bit Manipulationpattern-recognitionmodel-selectionfinite-differencesrecurrences
  • Machine LearningMediumModel answer
    Mobile Ad Creative Budget Allocation with Funnel & ROI Analysis

    Given funnel and revenue data for two mobile ad creatives, decide how to split incremental budget by reasoning through marginal ROI, LTV, and saturation.

    Machine LearningproductmarketingROIfunnel-analysis
  • Statistics & ExperimentsHardModel answer
    Design a Trial Subscription Experiment from Scratch

    Design a randomized experiment and full analysis plan to measure the true causal profit impact of offering new users a free first month.

    Statistics & Experimentsexperimentationcausal inferenceLTVmetric design
  • System DesignMediumModel answer
    Design a Real-Time Article Aggregation Platform

    Design a scalable system that continuously pulls articles from tens of thousands of publisher feeds, deduplicates and clusters related coverage, and serves personalized ranked feeds under 100ms.

    System Designsystem-designdistributed-systemscachingsearch
  • System DesignMediumModel answer
    Design a Small-String-Optimized Buffer in C++

    Evaluate low-level C++ skills: memory layout, copy semantics, alignment/padding, and how SSO eliminates heap allocations for short strings.

    System DesignC++memory-managementsmall-string-optimizationcache
  • Data Structure DesignMediumModel answer
    Path Template Router with Variables and Wildcard Tails

    Build a trie-based URL router that registers templates with named captures and wildcard tails, resolves concrete paths with literal-first precedence and backtracking, and detects shape conflicts.

    Data Structure Designtrieroutingbacktrackingdesign
  • System DesignMediumModel answer
    Design a Permission-Gated Agentic Research Assistant

    Architect an LLM-powered agent for internal analysts that enforces row-level access control, supports durable multi-step workflows, and gates consequential actions behind human approval.

    System Designagentic-systemsRBACLLMaudit-logging
  • Trees & GraphsMediumAuto-graded
    Root-to-Leaf Sum Verification

    Tests depth-first traversal of a binary tree encoded as an indexed array to find paths matching a target sum.

    Trees & Graphsbinary-treedfsiterativepath-sum
  • System DesignMediumModel answer
    Design a High-Throughput IoT Telemetry Ingestion Pipeline

    Design a backend that ingests millions of concurrent device data streams, separating critical alerts from bulk telemetry while explicitly reasoning through availability, scalability, and maintainability trade-offs.

    System Designdistributed-systemsstreamingkafkascalability
  • Machine LearningHardModel answer
    Design a Hybrid Search System for a Corporate Knowledge Base

    Design a scalable, low-latency search engine that combines keyword and semantic retrieval over 100M enterprise documents with personalized ranking.

    Machine Learninginformation-retrievalvector-searchrankingpersonalization
  • SQL & DataMediumModel answer
    Campaign Attribution: Define Metrics and Write SQL for Purchase Impact

    Design attributable, time-bounded conversion metrics for a marketing campaign and implement the SQL to measure, baseline, and diagnose them across a five-table schema.

    SQL & Datasqlmetricsattributionwindow-functions
  • System DesignHardModel answer
    Design a Prefix Autocomplete Service with Live Trend Signals

    Design a distributed autocomplete backend that returns the top 10 popularity-ranked query completions for any typed prefix in under 30ms at global scale.

    System Designautocompletedistributed-systemscachingstreaming
  • Machine LearningHardModel answer
    Design a Real-Time Surge Pricing Engine for a Ride-Hailing Platform

    Design an end-to-end dynamic pricing system for a two-sided ride-hailing marketplace, balancing supply, demand, fairness, and service quality.

    Machine Learningpricingmarketplacedemand-forecastingcausal-inference
  • Math & Bit ManipulationEasyAuto-graded
    Truth-Tellers and Liars: Deduce Two Island Identities

    Tests systematic logical deduction by resolving a two-person truth-teller/liar puzzle through exhaustive case analysis.

    Math & Bit Manipulationlogiccase-analysismath
  • BehavioralMediumModel answer
    Navigating Technical Disagreement and Critical Feedback

    Demonstrate how you handled a real technical dispute or tough feedback, balancing conviction with openness and tying the outcome to measurable results.

    Behavioralconflict resolutioncommunicationSTAR method
  • System DesignMediumModel answer
    Build a Multi-User Calendar with Recurring Events and Reminders

    Design the backend for a calendar platform that handles event creation, recurrence rules, shared access permissions, and scalable notification delivery.

    System Designsystem-designschedulingdatabasesdistributed-systems
  • System DesignMediumModel answer
    API Gateway Traffic Filtering Across Multiple Regions

    Design a system that blocks untrusted IP addresses at an API gateway, handles rule versioning and expiration, and replicates enforcement state across data centers.

    System Designsystem-designnetworkingdistributed-systems
  • System DesignHardModel answer
    Build a GPU-Accelerated Graphics Test Pipeline in Docker

    Design a containerized CI pipeline that runs automated Vulkan/OpenGL render-and-compare tests on a mixed NVIDIA/AMD GPU fleet with reproducibility, security, and fast feedback.

    System Designdockergpuci-cdgraphics
  • Machine LearningHardModel answer
    Card Transaction Triage and Fraud Rule Design

    Approve or decline two flagged transactions, then design a rule-based fraud strategy from scratch, covering metrics, cold-start thresholds, and adversarial adaptation.

    Machine Learningfraud detectionrisk strategyexperiment designfeature engineering
  • System DesignMediumModel answer
    Diagnose an SSH Service That Stopped Accepting Connections

    Design a layered, evidence-driven diagnostic plan to find why an SSH daemon is unreachable, from the client all the way down to daemon logs.

    System Designlinuxnetworkingsshsre
  • BehavioralHardModel answer
    Missed Deadline and Extra Scope: Owning Both

    Tell two linked stories—one real missed due date and one act beyond your role—with dates, metrics, trade-offs, communication artifacts, recovery tracking, and process fixes.

    Behavioralownershipprioritizationcommunicationrisk-management
  • System DesignMediumModel answer
    Design a Telemetry System for an Internal Developer Platform

    Design the data pipeline, key metrics, and adoption strategy for an internal compute platform used by hundreds of engineering teams.

    System Designtelemetrydeveloper-platformsmetricsdata-pipeline
  • Data Structure DesignMediumAuto-graded
    Simulate a Fixed-Capacity Circular Queue

    Tests ability to implement a circular buffer with O(1) enqueue/dequeue/peek and correct wraparound, full/empty handling, and ordered iteration.

    Data Structure Designcircular-bufferqueuearraysimulation
  • Arrays & HashingMediumAuto-graded
    Find Pair with Given Sum

    Tests the ability to use hash-based lookups for constant-time complement checking and handle input validation rigorously.

    Arrays & Hashinghash-tabletwo-pointersarray
  • Statistics & ExperimentsHardModel answer
    Fixing a Binary Classification Model for Flight Delays

    Identify and correct statistical errors in a flight delay prediction model, including inappropriate regression choice, feature encoding issues, and data quality problems.

    Statistics & Experimentslogistic-regressionfeature-engineeringdata-qualitymulticollinearity
  • Data Structure DesignMediumModel answer
    Company Hierarchy Query System with Dynamic Updates

    Build a data structure to efficiently query employee roles and reporting counts in a company hierarchy, then extend it to handle dynamic additions.

    Data Structure Designtreesgraphspreprocessingaggregation