KatInterview

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

Interview Practice Problems

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

6135
Problems
2276
Auto-graded
15
Topics
272
Added today

Showing 2911–2940 of 6135 results

  • Statistics & ExperimentsEasyModel answer
    Explaining Significance Results to Non-Technical Stakeholders

    Explain in plain language what a p-value measures, why it matters for ship-or-don't-ship decisions, and which common misreadings a strong answer should avoid.

    Statistics & Experimentsp-valuehypothesis-testingab-testingcommunication
  • Arrays & HashingEasyAuto-graded
    Earliest Non-Repeating Event Name in a Sequence

    Find the earliest entry in a list of strings that occurs exactly once overall, or return an empty string, testing frequency counting combined with preserved order.

    Arrays & Hashinghash-mapcountingstringstwo-pass
  • BehavioralMediumModel answer
    Telling Your Career Story and Explaining Why This Team

    Practice a structured answer that links your past impact to a specific team, showing clear motivation and avoiding generic reasons for wanting the job.

    Behavioralbehavioralmotivationcareer-narrativehiring-manager
  • Data Structure DesignMediumAuto-graded
    Admit or Deny Requests Under a Per-Client Rolling Quota

    Process a time-ordered request log and decide per request whether a client is under its quota in a rolling time window, counting only previously admitted requests.

    Data Structure Designsliding-windowdequehash-mapsimulation
  • System DesignMediumModel answer
    Lease-Based Task Dispatch for a Pool of Human Reviewers

    Design a platform that routes skill-specific manual tasks to human operators with leases, heartbeats, fair prioritization, and safe automatic reassignment after failures.

    System Designsystem-designtask-queueleasesdistributed-systems
  • System DesignMediumModel answer
    Prepare a Flash-Sale Platform for a 50x Traffic Surge

    Audit a small web stack ahead of a 50x traffic spike, pick the three most dangerous weaknesses, propose fixes, and plan the work for three engineers over four weeks.

    System Designarchitecture-reviewscalabilityavailabilitycaching
  • Arrays & HashingEasyAuto-graded
    Locate the Two Positions That Add Up to a Goal Value

    Find the single pair of distinct positions in an integer list whose values add up to a goal, using a one-pass lookup instead of checking every pair.

    Arrays & Hashinghash-maparraycomplement-lookup
  • System DesignHardModel answer
    Building a Reliable Earnings Pipeline for Gig Delivery Couriers

    Design a service that turns courier delivery lifecycle events into correct, auditable payouts, covering idempotency, ordering, time zones, data repair, and reconciliation.

    System Designsystem-designidempotencyevent-drivenpayments
  • Greedy & IntervalsMediumAuto-graded
    Fewest Conference Rooms for a Day of Bookings

    Compute the minimum number of rooms needed to host all time-range bookings when back-to-back bookings may reuse a room, testing sweep-line or heap-based interval reasoning.

    Greedy & Intervalsintervalsheapsweep-linesorting
  • System DesignMediumModel answer
    Designing Reliable Benchmarks and Regression Tests on Shared Clusters

    Describe how to run performance benchmarks and functional regression tests as separate tracks, and how to cut a benchmark's shared-cluster footprint while keeping results comparable.

    System Designqabenchmarkingregression-testinghpc
  • Machine LearningMediumModel answer
    Build a Pre-Release and Production Quality Gate for LLMs

    Design an automated platform that checks new LLM versions and sampled production traffic for correctness, safety, and regressions, with reproducible runs and clear interfaces.

    Machine Learningllm-evaluationml-system-designllm-as-judgeregression-testing
  • Machine LearningMediumModel answer
    Sparse Expert Layers: Routing and Cross-Device Sharding

    Describe how a sparse top-k expert feed-forward layer processes a token batch, and how placing experts on different devices changes communication, balance, and memory.

    Machine Learningmixture-of-expertsexpert-parallelismdistributed-trainingrouting
  • BehavioralMediumModel answer
    Handling a Silent Owner of a Critical Task Before a Deadline

    Your team is blocked because the owner of a critical-path task has gone silent. Describe how you would unblock work, stay fair to them, escalate, report risk, and prevent a repeat.

    Behavioralbehavioralleadershipescalationconflict-resolution
  • System DesignMediumModel answer
    Build a Blob Storage Platform with Resumable Large Uploads

    Design a cloud blob store that accepts huge files in parts, keeps them durable across machine and site failures, and scales to petabytes with heavy concurrent traffic.

    System Designobject-storagemultipart-uploadreplicationerasure-coding
  • BehavioralMediumModel answer
    Turning Hard Manager Feedback into Lasting Growth: A Behavioral Answer

    Practice answering a behavioral question about tough or surprising manager feedback: your reaction, the plan you built, how you checked in, and the habits that stuck.

    Behavioralbehavioralfeedbackcoachabilitystar-method
  • Machine LearningMediumModel answer
    Designing a Ranked Product Recommender with Role and Context Rules

    Design an ML pipeline that builds personalized ranked product lists, using collaborative filtering and ranking models while respecting user role, context, and business constraints.

    Machine Learningrecommender-systemscollaborative-filteringlearning-to-rankembeddings
  • Heaps, Sorting & SearchMediumAuto-graded
    Leftmost Match in a Sorted Sequence Without a Known Size

    Find the first index of a target in a sorted list while the search pretends its length is unknown, using doubling probes followed by a lower-bound binary search.

    Heaps, Sorting & Searchbinary-searchexponential-searchduplicatessorted-array
  • Stacks & QueuesMediumAuto-graded
    Largest Block Under a Skyline of Columns

    Compute the largest rectangle that fits under a row of unit-width columns, testing monotonic stack usage and boundary reasoning over contiguous ranges.

    Stacks & Queuesmonotonic-stackarrayhistogramcontiguous-range
  • Machine LearningMediumModel answer
    Build a Pre-Norm Transformer Layer with a Gated SiLU Feed-Forward

    Write a Transformer layer with masked multi-head self-attention, a gated Swish feed-forward network, residual paths and layer norm, and explain its shapes, masking and complexity.

    Machine Learningtransformermulti-head-attentionswiglulayer-normalization
  • Trees & GraphsMediumAuto-graded
    Nearest Exit Distance Map on a Walled Grid

    Compute, for every open cell of a grid with walls and exits, the shortest 4-directional distance to any exit using multi-source BFS, leaving unreachable cells unchanged.

    Trees & Graphsbfsgridmulti-source-bfsmatrix
  • BehavioralMediumModel answer
    Describe a Time You Reduced Complexity and Showed the Gain

    Behavioral prompt: recount a project where you cut the complexity of a product or system, explain how you found the cause, brought people along, and verified the improvement with data.

    Behavioralbehavioralownershipsimplificationstakeholder-management
  • BehavioralMediumModel answer
    Five Senior ML Engineer Leadership Stories: Prep Guide

    Prepare five structured leadership stories for a senior ML engineer behavioral panel: impact, risk, failure, conflict, and team and stakeholder execution, with an emphasis on measurable outcomes.

    Behavioralbehavioralleadershipsenior-ml-engineerstakeholder-management
  • System DesignMediumModel answer
    Exact-Match File Deduplication at Petabyte Scale

    Design a service that finds byte-identical files across billions of stored objects and lets clients check for existing content before uploading, while keeping network transfer low.

    System Designsystem-designdeduplicationhashingdistributed-storage
  • Greedy & IntervalsMediumAuto-graded
    Fewest Drivers to Cover Every Trip Without Overlap

    Find the fewest drivers needed to serve all trips given [start, end) times, which reduces to the peak number of simultaneous trips and tests sweep-line or heap handling of boundaries.

    Greedy & Intervalsintervalssweep-lineheapgreedy
  • Machine LearningMediumModel answer
    Transformers, Embeddings, Pretraining and Fine-Tuning Compared

    Contrast transformer architectures with embedding models, then explain why models are pretrained, how fine-tuning adapts them, and which risks to monitor.

    Machine Learningtransformersembeddingsfine-tuningtransfer-learning
  • Statistics & ExperimentsHardModel answer
    Validating a New Ad Ranking Model Through an Online Test

    Plan an online experiment for a new ad-ranking model, choose metrics, judge a CTR gain, investigate a surprising segment result, and decide whether a combined CTR and revenue gain justifies a global launch.

    Statistics & Experimentsab-testingexperiment-designguardrail-metricsheterogeneous-effects
  • Arrays & HashingEasyAuto-graded
    Per-Row Offset From Group Average in a Record List

    Tests group-then-broadcast logic: compute each group's mean over a list of dict records, then attach each row's difference from its group mean while preserving order.

    Arrays & Hashinghash-mapgroup-byaggregationsimulation
  • BehavioralMediumModel answer
    Pushing Back on a Senior Decision: A Behavioral Playbook

    Prepare a structured story about a time you challenged a senior leader's decision, covering how you made your case, how it resolved, and what you would change.

    Behavioralbehavioralconflict-resolutionstakeholder-managementinfluence
  • Greedy & IntervalsMediumAuto-graded
    Find the First Free Slot After Busy Minutes in Text Schedules

    Parse text schedule entries into inclusive minute intervals, merge them, and find the earliest k-minute free slot that follows the first busy minute of the day.

    Greedy & Intervalsintervalsmerge-intervalsstring-parsingsorting
  • Data Structure DesignMediumModel answer
    Resilient Chargeback Inbox: Normalize, Cache, and Cancel in React

    Build a React dispute list that normalizes inconsistent API data, caches queries for 60 seconds, and avoids stale responses when filters or search change quickly.

    Data Structure Designreacttypescriptcachingrace-conditions