KatInterview

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

Interview Practice Problems

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

6002
Problems
2223
Auto-graded
15
Topics
273
Added today

Showing 601–630 of 6002 results

  • System DesignMediumModel answer
    Design a GPU Job Scheduler for Text-to-Video Generation

    Design an asynchronous GPU scheduling service for single-GPU text-to-video jobs, featuring weighted fair queueing, fault tolerance, and lease-based worker management.

    System Designsystem-designjob-schedulerdistributed-systemsgpus
  • Data Structure DesignMediumAuto-graded
    Ring Buffer Double-Ended Queue Simulator

    Simulate a bounded double-ended queue over a batch of commands using a circular buffer with constant-time operations and correct index wraparound.

    Data Structure Designdequecircular-buffersimulationdesign
  • Data Structure DesignMediumAuto-graded
    Live Poll Leaderboard: Track the Current Front-Runner

    Process a batch of vote and leader-query operations over named options, using counters and a tie-break rule to report the current leader after each query efficiently.

    Data Structure Designhash-mapheapsimulationtie-breaking
  • Statistics & ExperimentsMediumModel answer
    Diagnosing a Sudden KPI Shift and Testing the Remedy

    Explain how to find the root cause of an abrupt move in a core product metric, then design and analyze a controlled experiment that checks whether a proposed fix actually works.

    Statistics & Experimentsroot-cause-analysisab-testingexperiment-designmetrics
  • Greedy & IntervalsMediumAuto-graded
    Best Result After Removing a Single Five from a Number String

    Remove exactly one '5' from a digit string to get the lexicographically largest result of equal length, using a greedy scan and preserving leading zeros.

    Greedy & Intervalsgreedystringsdigitsexchange-argument
  • Trees & GraphsMediumAuto-graded
    Counting Land Clusters on a Wrap-Around Map

    Count connected groups of land cells on a grid whose opposite edges wrap around, testing grid traversal with modular adjacency.

    Trees & Graphsgraphdfsgridunion-find
  • System DesignMediumModel answer
    Build a Playbook-Driven Contract Review Pipeline with Citations

    Design an asynchronous service that checks contracts against versioned rule sets, cites exact text spans, proposes edits, assigns a risk tier, and lets reviewers override results.

    System Designsystem-designllm-agentstraceabilitymulti-agent
  • Arrays & HashingMediumAuto-graded
    Sliding Token on a Grid with Timed Heading Changes

    Compute a token's final cell on a grid with blocked cells when its heading changes at given timestamps up to 10^9, which requires processing time segments instead of simulating each tick.

    Arrays & Hashingsimulationgridintervalslarge-input
  • SQL & DataMediumModel answer
    Flatten Event Logs and Build User Segments in pandas

    Turn a table of nested event lists and attribute dicts into a flat event table, per-user features, and segment conversion rates using pandas without row loops.

    SQL & Datapandasdata-manipulationexplodegroupby
  • Machine LearningMediumModel answer
    Nine-Part ML Fundamentals and Model Diagnostics Review

    Answer nine practical questions on statistical testing, model fit, causality, representations, optimization, imbalanced data, misleading accuracy, and experiment sanity checks.

    Machine Learningml-fundamentalsbias-variancegradient-descentimbalanced-data
  • System DesignHardModel answer
    Spark Internals and Performance Tuning for Lake Pipelines

    Explain how Spark defers and runs work across a cluster, then show how that execution model guides a measured approach to tuning slow batch and streaming jobs on Parquet/Delta data.

    System Designsparkpysparkdata-engineeringperformance-tuning
  • System DesignMediumModel answer
    Choosing Safe Meeting Spots for a Ride-Hailing Trip

    Design a service that picks a legal, safe, and convenient meeting spot for a rider and driver, balancing walking time, driver arrival time, and confidence.

    System Designsystem-designmapsroutingranking
  • System DesignMediumModel answer
    Build the Backend for a Multi-User Live Text Editor

    Design a backend that lets many people edit one text document at once, keeps every replica converged, persists edits with history, and recovers cleanly from disconnects and server crashes.

    System Designsystem-designreal-time-collaborationoperational-transformationcrdt
  • Math & Bit ManipulationMediumAuto-graded
    Group Size Threshold and Closest-Pair Gap on a Circle

    Compute a birthday-collision threshold exactly and by approximation, plus expected minimum gap and tail probability for random points on a circle, with a Poisson comparison.

    Math & Bit Manipulationprobabilitymathbirthday-paradoxpoisson-approximation
  • Data Structure DesignHardModel answer
    Append-Only Log Storage Engine with Torn-Write Recovery

    Build an embedded byte-oriented key-value store on a checksummed append-only log, with an in-memory index, delete markers, thread safety and recovery that truncates a damaged tail.

    Data Structure Designstorage-engineappend-only-logcrash-recoverycrc32
  • Arrays & HashingMediumAuto-graded
    Sliding Window Maxima on a Grid With Source Positions

    Slide a square window over an integer grid with a given step, and report each window's maximum with its grid coordinates, resolving ties by the smallest row, then the smallest column.

    Arrays & Hashingmatrixsliding-windowsimulationtie-breaking
  • Math & Bit ManipulationMediumAuto-graded
    Exponentiation by Squaring with Negative Exponents

    Compute a floating-point base raised to a signed 32-bit integer exponent in logarithmic time, including negative exponents, using repeated squaring.

    Math & Bit Manipulationbinary-exponentiationmathbit-manipulationfloating-point
  • System DesignMediumModel answer
    Resumable Parallel Fetcher for Versioned ML Model Files

    Design a fetcher that pulls a multi-file model in parallel byte ranges, survives failures without redoing verified work, and exposes the model only when complete and consistent.

    System Designsystem-designresumable-downloadsbyte-rangesintegrity-verification
  • System DesignMediumModel answer
    Design a Flash Sale System with Virtual Waiting Room

    Architect a high-concurrency item drop system using edge-cached waiting queues, zero-oversell inventory reservation, and idempotent payment processing.

    System Designsystem-designdistributed-systemsredisrelational-database
  • BehavioralMediumModel answer
    Three Behavioral Stories: Persuasion, Data Calls, and a Failure

    Prepare three distinct stories for a hiring-manager round: persuading peers without formal power, making a hard data-backed call, and owning a failure with a real change in behavior.

    Behavioralbehavioralleadershipinfluencestar-method
  • BehavioralMediumModel answer
    Four Engineering Stories: Initiative, Uncertainty, Root Cause, Disagreement

    Prepare four structured stories for a new-grad engineering behavioral round, covering initiative, unclear requirements, root-cause investigation and a disagreement with a teammate.

    Behavioralbehavioralownershipambiguityconflict
  • System DesignMediumModel answer
    Designing a Self-Checking UVM Environment for a Streaming RTL Block

    Explain how to verify a valid/ready RTL block using UVM: environment structure, an out-of-order-safe scoreboard, and coverage-driven closure to sign-off.

    System Designuvmsystemverilogdesign-verificationscoreboard
  • Greedy & IntervalsEasyAuto-graded
    Conflict-Free Schedule Check for a Single Attendee

    Tests sorting intervals and scanning adjacent pairs to detect overlaps under half-open interval rules, where touching endpoints are allowed.

    Greedy & Intervalsintervalssortinggreedyarrays
  • Arrays & HashingEasyAuto-graded
    Coupon Usage Caps: Check Remaining Redemptions per User

    Count past coupon redemptions per (user, coupon) pair from a log, then answer many read-only queries on whether each user is still under the coupon's cap.

    Arrays & Hashinghash-mapcountingaggregationcomposite-key
  • Statistics & ExperimentsMediumModel answer
    Planning Metrics and an A/B Test for a Marketplace Search Feature

    Design the metric set, guardrails, randomization unit, sample size and monitoring plan for a new feature in a two-sided booking marketplace, before any code is built.

    Statistics & Experimentsab-testingmetricspower-analysisguardrails
  • Trees & GraphsMediumModel answer
    Friend Product Suggestions and Click-Path Reachability

    Two short coding tasks: suggest products that a user's friends bought but the user hasn't, and decide whether one URL can reach another through recorded navigation steps.

    Trees & Graphshash-setset-differencegraphbfs
  • Machine LearningHardModel answer
    Predicting Late Arrivals: Leakage-Safe Flight Delay Modeling

    Design a leakage-safe pipeline that predicts 15+ minute late arrivals from pre-departure data: audits, time-based validation, models, explanations, stress tests, and an A/B plan.

    Machine Learningdata-leakagetime-series-validationlightgbmcalibration
  • System DesignHardModel answer
    Building a Future-Dated Payment Scheduler with Safe Cancellation

    Design a service that stores payments for later execution, lets users check or cancel them while pending, and guarantees no duplicate charges despite retries, crashes and time-zone quirks.

    System Designsystem-designschedulingidempotencydistributed-systems
  • Statistics & ExperimentsMediumModel answer
    Measuring Misinformation Prevalence on a Social Feed with Confidence Intervals

    Design a sampling plan to estimate how much of a social feed is misinformation, with confidence intervals, and choose engagement metrics that capture its real effect on users.

    Statistics & Experimentssamplingstratified-samplingconfidence-intervalsprevalence-estimation
  • Math & Bit ManipulationEasyAuto-graded
    Card Launch Unit Economics Report Builder

    Build a fixed unit-economics report for a card launch: portfolio P&L, partnership uplift, bonus payback time, and the zero-profit loss rate.

    Math & Bit Manipulationmathsimulationunit-economicsdictionaries