KatInterview

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

Interview Practice Problems

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

6115
Problems
2266
Auto-graded
15
Topics
276
Added today

Showing 2461–2490 of 6115 results

  • System DesignMediumModel answer
    Build a Fleet-Wide Log Search Platform at 100K Lines/Second

    Design a platform that collects logs from many microservices, keeps them for 30 days, and supports fast searches by service, time window, and text or regex pattern.

    System Designsystem-designlog-pipelinekafkaindexing
  • Arrays & HashingMediumAuto-graded
    Runners on a Road Frozen by a Sweeping Guard

    Simulate runners advancing along a road while a guard turns at given seconds and freezes anyone in view, using parity of duplicate turn times and strict event ordering.

    Arrays & Hashingsimulationhash-mapcountingparity
  • BehavioralMediumModel answer
    Presenting System Architecture and Proposing Process Improvements

    Learn how to present a technical project end-to-end and constructively discuss team process challenges and influence strategies during software engineering interviews.

    Behavioralbehavioralsystem-architectureleadershipcollaboration
  • Stacks & QueuesMediumAuto-graded
    Widest Span Between Two Dominating Ends

    Find the longest subarray whose two end values are each strictly larger than everything between them, using a monotonic stack to avoid checking all pairs.

    Stacks & Queuesmonotonic-stackarraysnearest-greateramortized-analysis
  • Statistics & ExperimentsHardModel answer
    Plant-Based Menu Investment: Business Case & Pilot Design

    Evaluate a $13M plant-based menu expansion using market sizing, incremental unit economics, cannibalization risks, real option staging, and pilot experimental design.

    Statistics & Experimentsexperimentationbusiness-caseunit-economicscausal-inference
  • StringsEasyAuto-graded
    Fill In Percent-Delimited Tokens From a Lookup Table

    Scan a string left to right, replacing each %key% token with its mapped value and returning None when a key is missing; tests careful linear string parsing.

    Stringsstringsparsinghash-maptwo-pointers
  • BehavioralMediumModel answer
    Reflecting on a Significant Professional Failure and Its Lessons

    Share a concrete work failure or disappointment, detailing your immediate accountability, how you navigated the outcome, and the structural changes you introduced as a result.

    Behavioralbehavioralleadershipfailurepost-mortem
  • Heaps, Sorting & SearchMediumModel answer
    Minimize Black-Box Unimodal Function Without Derivatives

    Find the minimum of a convex/unimodal function over continuous and discrete intervals using zero-order optimization.

    Heaps, Sorting & Searchbinary searchoptimizationunimodalgolden section
  • BehavioralMediumModel answer
    Balancing Two High-Impact Projects Under Overlapping Deadlines

    Demonstrate your approach to analyzing business risks, aligning cross-functional stakeholders, and executing when two urgent deliverables collide.

    Behavioralbehavioralprioritizationstakeholder-managementtrade-offs
  • System DesignHardModel answer
    Design a Multi-Tenant GPU Inference Engine

    Architect a scalable, low-latency API platform for serving multi-tenant deep learning workloads (including LLMs) across heterogeneous GPUs under strict latency SLOs.

    System Designsystem-designmachine-learninggpu-inferencellm-serving
  • Trees & GraphsMediumModel answer
    Evaluate Grid Path Feasibility and Identify Top K Elements

    Determine matrix path reachability under obstacle constraints and extract the k most frequent elements from an array.

    Trees & Graphstrees-graphsheaps-sortingarrays
  • System DesignEasyModel answer
    Debugging Low Bandwidth Performance in Containerized Environments

    Systematically troubleshoot degraded network throughput across container runtimes, host transport stacks, and physical network paths.

    System DesignNetworkingContainersLinuxTroubleshooting
  • Data Structure DesignMediumModel answer
    Pluggable Filter and Scoring Pipeline for Ticket Listings

    Design an extensible object-oriented engine that drops ineligible events with pluggable rules, then orders the rest by a weighted blend of scoring strategies.

    Data Structure Designobject-oriented-designstrategy-patternopen-closed-principlesorting
  • System DesignMediumModel answer
    Design a Performant Continuous Particle Blaster on iOS

    Architect an iOS animation system that emits floating emoji particles on continuous press, focusing on frame rates, layer management, timer accuracy, and unit testability.

    System DesigniOSCore AnimationConcurrencyPerformance
  • Statistics & ExperimentsMediumModel answer
    Debt vs. Ownership: Contrasting Bondholders and Common Shareholders

    Contrast what bondholders and common shareholders are owed, how their returns arise, which risks they bear, and why profitable firms may still skip common dividends.

    Statistics & Experimentsfinancebondsequitydividends
  • Greedy & IntervalsMediumAuto-graded
    Insert and Merge Interval into Sorted Collection

    Incorporate a target range into an already sorted list of disjoint closed intervals, merging any overlapping or adjacent spans in linear time.

    Greedy & Intervalsintervalsarraysgreedy
  • BehavioralMediumModel answer
    Navigating Ambiguous Tasks and Shifting Priorities in Work Simulations

    Learn how to structure behavioral answers about managing ambiguous requirements, conflicting stakeholder demands, time constraints, and risk-based decision-making with concrete examples.

    Behavioralbehavioralleadership-principlesprioritizationambiguity
  • BehavioralHardModel answer
    Walk Through a Flagship Engineering Project You Led

    Describe one significant project you drove: the starting problem, your own contributions, the real design trade-off, the safe rollout, measurable results and lessons learned.

    Behavioralbehavioralleadershipproject-deep-divetrade-offs
  • BehavioralMediumModel answer
    Describing Your Workflow With AI Agents in Research

    Explain how you use AI agents for ideation, experiments, and paper writing, and how you verify their output, where you hold back, and how you handle confidentiality and disclosure.

    Behavioralbehavioralresearchai-agentsverification
  • Data Structure DesignMediumAuto-graded
    Replay a Bounded Recency Store from an Operation Log

    Simulate a fixed-size store that discards its stalest entry on overflow, answering lookups in O(1) each by pairing a hash map with a doubly linked list.

    Data Structure Designhash-mapdoubly-linked-listlru-cachesimulation
  • Heaps, Sorting & SearchMediumAuto-graded
    Where Is the Traveler? Locate by Timestamp from Trip Logs

    Answer timestamp queries against unsorted trip intervals using sorting and binary search, handling closed boundaries, gaps between trips, and times before the first trip.

    Heaps, Sorting & Searchbinary-searchsortingintervalssimulation
  • BehavioralMediumModel answer
    Behavioral Story: A Measured Gamble and a Foreseen Roadblock

    Prepare a behavioral answer showing a well-reasoned risk you took and a predictable obstacle you planned for, with the reasoning, safeguards, results, and lessons clearly explained.

    Behavioralbehavioralrisk-takingstar-methodleadership
  • System DesignMediumModel answer
    Design a Shared SQL Canvas with Immutable Releases and Async Runs

    Design a collaborative SQL editor featuring real-time document sync, frozen releases, and async execution tracking with strict input-output lineage.

    System Designsystem-designdata-warehousedistributed-systemsconcurrency
  • Data Structure DesignMediumModel answer
    Detect Duplicate Files Safely and Efficiently

    Design a filesystem duplicate finder that guards against infinite loops, avoids loading whole files into memory, and applies multi-stage filtering to minimize disk reads.

    Data Structure Designfilesystemhashingio-optimizationtraversal
  • System DesignMediumModel answer
    Design a Context-Aware Restaurant Recommendation Engine

    Design an end-to-end personalized restaurant discovery and search service balancing geo-constraints, low-latency ranking, real-time context, and hybrid search architectures.

    System Designsystem-designrecommendation-systemsmachine-learningsearch
  • Arrays & HashingEasyAuto-graded
    Push Zeros Left While Keeping Other Values in Order

    Rearrange an integer list in place so all zeros come first and the non-zero values keep their original relative order, using a right-to-left two-pointer pass.

    Arrays & Hashingarraystwo-pointersin-place
  • BehavioralEasyModel answer
    Mastering the Initial Recruiter Screening for Product Roles

    Craft compelling, structured responses for an initial HR screening call for a Product Manager position, covering self-introductions, career moves, metrics, and role alignment.

    Behavioralbehavioralproduct-managementinterview-prephr-screening
  • Arrays & HashingMediumAuto-graded
    Four-Position Target Sum Finder Preserving Original Indices

    Find all increasing index quadruples whose values add up to a target, treating equal values at different positions as distinct answers; tests hashing pair sums and ordering.

    Arrays & Hashinghash-mapmeet-in-the-middlek-sumindices
  • BehavioralMediumModel answer
    Two Customer-Centric Stories: Extra Mile and Holding Standards

    Prepare two real stories: one where you went well beyond expectations to fix a customer's problem, and one where you held a quality standard despite pressure to cut corners.

    Behavioralbehavioralcustomer-focusleadershipquality
  • Machine LearningMediumModel answer
    Loss, Batch Size, Regularization and Tree Depth: ML Core Review

    Four connected ML fundamentals: why log loss suits sigmoid outputs, how batch size shapes training, how L1 and L2 differ, and how leaf size controls bias and variance in trees.

    Machine Learningcross-entropysgdregularizationdecision-trees