KatInterview

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

Interview Practice Problems

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

6035
Problems
2235
Auto-graded
15
Topics
274
Added today

Showing 2671–2700 of 3800 results

  • StringsMediumModel answer
    Extract and Safely Parse an XML Document Nested in CDATA

    Implement a function that pulls a nested XML document out of a CDATA section and reads an attribute from its root, while blocking XXE and entity-expansion attacks.

    Stringsxmlsecurityparsing
  • System DesignHardModel answer
    Design a Crash Artifact Ingestion and Triage Pipeline

    Design a distributed system that collects, deduplicates, stores, and analyzes large binary crash files from a massive microservice fleet across regions.

    System Designdistributed-systemsstoragereliabilityscalability
  • BehavioralEasyModel answer
    Navigating a Challenging Technical Project

    Explain a complex project you led, the obstacles you faced, your decision-making process, and the measurable outcome.

    Behavioralbehavioralleadershipproblem-solving
  • Math & Bit ManipulationMediumModel answer
    Build a [0,1) Sampler from Fair Coin Flips

    Design an algorithm that uses a fair-bit source to produce a number uniformly distributed on [0,1), and analyze its error and cost.

    Math & Bit Manipulationprobabilityrandomized-algorithmsbit-manipulationfloating-point
  • System DesignMediumModel answer
    RTL Lint Diagnostics: Black Boxes, Loops, and Width Mismatches

    Explain the root cause, hardware risk, and fix strategy for three common RTL lint findings in Verilog/SystemVerilog static analysis.

    System DesignRTLVerilogSystemVerilogstatic analysis
  • 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
  • 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
  • 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
  • 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