KatInterview

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

Interview Practice Problems

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

6086
Problems
2256
Auto-graded
15
Topics
275
Added today

Showing 2011–2040 of 6086 results

  • Greedy & IntervalsMediumAuto-graded
    Text Formatting and Dynamic Schedule Tracker

    Perform greedy text wrapping to fixed line widths alongside dynamic interval point queries with insertion and removal.

    Greedy & Intervalsgreedyintervalsfenwick-treecoordinate-compression
  • Heaps, Sorting & SearchMediumAuto-graded
    Unique Union of Several Pre-Sorted Lists

    Combine many ascending integer lists into one ascending list with each distinct value appearing once, ideally using a heap-based k-way merge.

    Heaps, Sorting & Searchheapk-way-mergededuplicationsorted-arrays
  • Data Structure DesignMediumModel answer
    Log Test Executions and Query Failure Recovery and Concurrent Failures

    Design an event-driven system to track test statuses, calculate minimum recovery durations, and identify the longest continuous window of high concurrent failures.

    Data Structure Designdesign-dsgreedy-intervalsarrays
  • Greedy & IntervalsMediumAuto-graded
    Calculate Max Trading Returns from Multi-Asset Feed

    Process an unordered multi-asset market feed to find the maximum possible cumulative profit across all tickers.

    Greedy & Intervalsarraysgreedysortinghash-map
  • Statistics & ExperimentsMediumModel answer
    Mental Estimation of Option Greeks and Delta-Hedged PnL

    Learn how to mentally approximate European option Greeks using rules of thumb and analyze delta-hedging profit and loss under realized vs. implied volatility misestimates.

    Statistics & Experimentsgreeksblack-scholesdelta-hedgingimplied-volatility
  • Data Structure DesignHardAuto-graded
    State-Driven Job Scheduler with DLQ and Dependencies

    Simulate an event-driven task queue handling execution states, lease timeouts, retry budgets, dependencies, and dead-letter cascading.

    Data Structure Designdesign-dsheaps-sortingtrees-graphsstacks-queues
  • StringsMediumAuto-graded
    Score a Guess Against a Hidden Word with Exact and Shifted Hits

    Compute exact-position and misplaced letter counts between a guess and a secret using leftover letter counts, with a sentinel for guesses missing from the word list.

    Stringsstringshashingfrequency-countingsimulation
  • System DesignMediumModel answer
    Live Metrics Pipeline for a Global Food-Ordering Platform

    Design a streaming backend that serves order counts, revenue and best-selling dishes over 1-hour, 1-day and 7-day windows at 100K orders/s with data no more than 5 seconds stale.

    System Designsystem-designstream-processingkafkaredis
  • Heaps, Sorting & SearchMediumAuto-graded
    Maximum Concatenation of Nonnegative Integers

    Order a list of nonnegative integers so that joining their decimal forms gives the biggest possible number, using a pairwise concatenation comparator and handling the all-zero case.

    Heaps, Sorting & Searchsortingcustom-comparatorstringsgreedy
  • Arrays & HashingEasyAuto-graded
    Increment Large Integer Represented as Digits

    Process an array of decimal digits representing a non-negative integer by adding one, correctly handling carry propagation and list expansion.

    Arrays & Hashingarraysmath-bitseasy
  • Heaps, Sorting & SearchMediumModel answer
    Design a Single-Threaded Delayed Task Runner

    Implement a priority-queue task runner that handles delayed execution without busy-waiting.

    Heaps, Sorting & Searchheappriority-queuedesign-dstime-complexity
  • Arrays & HashingEasyAuto-graded
    Activity Windows from Sensor Readings Over a Cutoff

    Scan sorted timestamped sensor readings once and group consecutive readings strictly above a cutoff into [first_time, last_time] windows.

    Arrays & Hashingarraystwo-pointersintervalssimulation
  • BehavioralMediumModel answer
    Answering Core Engineering Behavioral Prompts with Follow-ups

    A guide on structuring engineering behavioral answers—covering challenges, incidents, self-improvement, and disagreements—with data, root-cause analysis, and deep follow-ups.

    Behavioralbehavioralleadershipincident-responseconflict-resolution
  • System DesignHardModel answer
    Designing Kubernetes Concurrent App Scheduling and Dynamic Node-Signal Extensions

    Architect concurrent pod scheduling under capacity limits and design a custom Kubernetes scheduler plugin that uses real-time node telemetry for placement.

    System Designkubernetesdistributed-systemssystem-designscheduling
  • Machine LearningMediumModel answer
    Design a Social Feed Negative Feedback Prediction Model

    Architect an ML prediction pipeline to capture explicit and implicit user dissatisfaction on a social feed, handling extreme label skew, multi-task ranking, and real-time inference.

    Machine Learningmachine-learningsystem-designrecommendation-systemsranking
  • System DesignMediumModel answer
    Building a Resilient Multiplayer Chess Backend

    Architect a real-time chess platform where each game has one authoritative owner, exactly-once move application, server-driven clocks, fast crash recovery, and low-latency spectator streaming.

    System Designsystem-designwebsocketsfault-toleranceidempotency
  • Machine LearningHardModel answer
    ML and Statistics Fundamentals: A Rapid-Fire Concept Review

    Answer a broad set of statistics and ML fundamentals questions, from moment generating functions to attention, then sketch a system that finds relevant users.

    Machine Learningstatisticsdeep-learninghypothesis-testingtree-ensembles
  • Arrays & HashingMediumAuto-graded
    Firebreak Choice in a Spreading Crop Disease Grid

    Simulate a synchronous grid disease model with delayed death or recovery, then try every single-row or single-column firebreak to minimize dead plants.

    Arrays & Hashingsimulationgridbrute-forcecellular-automaton
  • System DesignHardModel answer
    Design an Automated Code Review Assistant

    Design a scalable ML system to analyze code changes, synthesize context, leverage static tools, and post actionable code review feedback.

    System DesignLLM OrchestrationDeveloper ToolsSystem DesignStatic Analysis
  • Arrays & HashingMediumAuto-graded
    Calculate Welch's T-Test P-Value for Experiment Rides

    Process user experiment assignments and ride telemetry data to calculate a Welch's two-sample t-test p-value under strict filtering rules.

    Arrays & Hashingstatisticsdata-processinghypothesis-testing
  • Greedy & IntervalsEasyAuto-graded
    Extract Continuous Active Time Windows

    Process chronological sensor sample logs to extract continuous active periods matching a minimum elapsed duration requirement.

    Greedy & Intervalsgreedy-intervalsarraystwo-pointers
  • BehavioralMediumModel answer
    Going Beyond Your Lane: A Behavioral Story with Trade-offs and Metrics

    Tell a structured story about voluntarily supporting colleagues while your own priorities competed, covering durable artifacts, what you gave up, measured results, and lessons learned.

    Behavioralbehavioralleadershipcollaborationprioritization
  • BehavioralMediumModel answer
    Engineering Leadership: Strategic Execution, Influence, and Team Growth

    Demonstrate technical leadership, stakeholder alignment, and team mentorship through structured STAR responses and concrete operational metrics.

    Behavioralbehavioralleadershipmentorshipstakeholder-management
  • BehavioralHardModel answer
    Handling Unclear Specs on a High-Stakes Project

    Describe a project where requirements were missing or contradictory, how you got decisions made without guessing, and how you kept engineering progress safe while waiting.

    Behavioralbehavioralleadershipambiguitystakeholder-management
  • System DesignEasyModel answer
    Diagnosing a Kernel OOM Kill in a Containerized JSON Service

    Walk through confirming a kernel OOM kill, cutting memory use of a cache-heavy service without adding RAM, and reading RSS versus VSZ during an investigation.

    System Designlinuxoom-killercgroupsmemory-management
  • Statistics & ExperimentsMediumModel answer
    A/B Testing Strategy for Topic Recommendations

    Design an end-to-end recommendation A/B test covering unit selection, power calculations with clustering adjustments, metric guardrails, and bias controls.

    Statistics & Experimentsab-testingexperimental-designpower-analysiscausal-inference
  • Greedy & IntervalsMediumAuto-graded
    Wildcard Brackets: Can the Sequence Be Made Valid?

    Decide if a string of brackets and wildcards can be made valid by choosing each wildcard's role, testing range-tracking of reachable open counts or a greedy two-pass argument.

    Greedy & Intervalsgreedystringsparenthesesdynamic-programming
  • Heaps, Sorting & SearchMediumModel answer
    Design and Analyze an Intentionally Inefficient Correct Sorting Algorithm

    Propose a fully correct yet highly inefficient sorting algorithm, prove its termination and correctness, and derive its time and space complexity.

    Heaps, Sorting & Searchsortingcomplexity-analysiscombinatoricsrecursion
  • Heaps, Sorting & SearchMediumAuto-graded
    Weighted Distribution Sampling from Uniform Draws

    Validate probability weights and map pre-generated uniform float values to discrete outcomes using prefix sums and binary search.

    Heaps, Sorting & Searcharraysbinary-searchmathvalidation
  • Greedy & IntervalsEasyAuto-graded
    Summarize Integer Ranges into String

    Process an unorganized array of integers by sorting, deduplicating, and formatting contiguous numerical ranges into a compact string.

    Greedy & Intervalsarrayssortingintervalsstrings