KatInterview

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

Interview Practice Problems

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

6000
Problems
2221
Auto-graded
15
Topics
272
Added today

Showing 571–600 of 6000 results

  • Trees & GraphsMediumAuto-graded
    Tallest Chain of Nodes in an Index-Linked Binary Tree

    Compute the height of a binary tree given as a child-index table, handling empty input and very deep skewed trees without recursion failures.

    Trees & Graphsbinary-treedfsiterative-traversaltree-height
  • StringsMediumAuto-graded
    Tightest Segment Covering a Required Letter Multiset

    Find the shortest contiguous piece of a text that includes all letters of a target, with repeats and case mattering, using a sliding window with counts and earliest-start tie-breaking.

    Stringssliding-windowtwo-pointershash-mapstrings
  • Data Structure DesignMediumAuto-graded
    Batch Word and In-Order Phrase Lookup Over Text Documents

    Build an inverted index with token positions to answer whole-word and in-order phrase queries over documents, handling repeated words and punctuation.

    Data Structure Designinverted-indexhash-mapbinary-searchtokenization
  • BehavioralMediumModel answer
    Defending Your Biggest Project Under Repeated "Why" Questions

    Prepare to walk through one or two significant past projects in depth, showing technical judgment, cross-team influence, ownership, and a mature approach to feedback and design reviews.

    Behavioralbehavioralproject-deep-diveownershipleadership
  • System DesignMediumModel answer
    Architecting a Durable, Always-On Object Store at Scale

    Design a horizontally scalable object storage service with buckets, keys, and huge blobs, covering metadata, placement, durability, consistency, large uploads, security and operations.

    System Designobject-storagedistributed-systemsreplicationerasure-coding
  • Machine LearningMediumModel answer
    Build a Personalized Swipe-Feed Ranking Pipeline for Clips

    Design an end-to-end ML recommender for a vertical clip feed with multi-stage retrieval and ranking, real-time learning, diversity and safety controls, and cold-start handling.

    Machine Learningrecommendation-systemsml-system-designretrieval-and-rankingcold-start
  • BehavioralMediumModel answer
    Build a Story Portfolio and One Flagship Project Deep Dive

    Prepare a set of short stories showing problem-solving, teamwork, and leadership, plus one detailed account of a project you drove from start to finish, covering obstacles and measurable outcomes.

    Behavioralbehavioralleadershipstar-methodproject-deep-dive
  • Machine LearningMediumModel answer
    Enterprise Data Asset Retrieval for Autonomous Coding Agents

    Design a multi-stage retrieval system that surfaces the right database tables and analytical notebooks for an internal AI coding assistant answering data queries.

    Machine LearningInformation RetrievalRAGSystem DesignML System Design
  • StringsEasyAuto-graded
    Ordered Symbol Tally by First Occurrence

    Count how often each character occurs in a string and report the tallies in the order the characters first appear, treating every character as distinct and significant.

    Stringshash-mapstringcountingordered-dict
  • Heaps, Sorting & SearchMediumAuto-graded
    Batched Binary Search with Query Caching

    Evaluate efficient sorted array lookups for repetitive queries using binary search combined with memoization.

    Heaps, Sorting & Searchbinary-searcharraysmemoizationhashing
  • System DesignHardModel answer
    Tracing a 4 GiB Allocation, Swap Stalls, and the Cost of Inlining

    Walk through how a huge allocation becomes virtual and physical memory on Linux, why swap hurts tail latency, and what C++ inline means for linkage and the CPU.

    System Designoperating-systemsvirtual-memorylinuxcpp
  • Statistics & ExperimentsEasyModel answer
    Correcting Size-Biased Sampling to Estimate Daily Guest Totals

    Estimate total guests who show up across all reservations from a sample drawn proportionally to party size, correcting the bias and giving a confidence interval.

    Statistics & Experimentssize-biased-samplinginverse-probability-weightingsurvey-samplingconfidence-interval
  • Statistics & ExperimentsMediumModel answer
    Investigating a Weekly Drop in Created Items and Testing a Suggestion Feature

    Diagnose a 15% weekly drop in a creation metric after a partial feature rollout, then design a cluster-randomized A/B test that handles shared-workspace interference.

    Statistics & Experimentsab-testingmetric-investigationnetwork-effectscluster-randomization
  • BehavioralMediumModel answer
    Present a Risk Modeling Project to a Non-Technical Screener

    Practice turning a past risk modeling project into a short, business-focused story that shows your ownership, sound modeling judgment under regulation, and measurable results.

    Behavioralbehavioralrisk-analyticsstorytellingstar-method
  • SQL & DataMediumModel answer
    Filtering Merchants by Chargeback Rate: Row vs Group Filters

    Find merchants whose 30-day chargeback rate exceeds 0.5% and explain why the rate filter belongs after grouping, plus dialect quirks and performance implications.

    SQL & Datasqlgroup-byhavingaggregation
  • Dynamic ProgrammingMediumAuto-graded
    Probability of Adjacent Car Groups in a Random Parking Row

    Count placements of k items in n slots with at least m maximal runs of length 2 or more, using a counting DP or combinatorics, and return the exact probability.

    Dynamic Programmingcombinatoricsprobabilitydynamic-programmingcounting
  • SQL & DataMediumModel answer
    Pandas Activity Metrics: Local Dates, Rolling Windows, Retention

    Build daily active users, rolling averages, per-user rolling counts and week-over-week retention from a UTC event log, using timezone-correct, vectorized Pandas.

    SQL & Datapandastime-seriesgroupbyrolling-window
  • System DesignHardModel answer
    Building an Outbound Voice Dialer That Survives Campaign Bursts

    Design a multi-tenant service that places API-driven phone calls through carriers with hard channel and CPS limits, stays fair under bursts, and tracks call state reliably.

    System Designsystem-designqueueingbackpressurerate-limiting
  • Greedy & IntervalsMediumAuto-graded
    Shift Tracker and Earnings Simulator

    Simulate employee shifts, structural updates, bonus intervals, filtering, and time-bounded payroll computations.

    Greedy & Intervalsdesignsimulationintervalssorting
  • Machine LearningMediumModel answer
    Designing and Deploying an End-to-End ML Pipeline

    Walk through an end-to-end machine learning project lifecycle, covering framing, architecture, validation, monitoring, and causal business impact.

    Machine Learningml-opsmodel-deploymentfeature-storedata-leakage
  • SQL & DataEasyAuto-graded
    Users Logging In Successfully From Several Countries

    Group login records by user, keep only exact-match successful ones, and report users whose successful logins span at least two distinct countries, sorted.

    SQL & Datahash-mapsetsfilteringgroup-by
  • StringsEasyAuto-graded
    Elapsed Minutes Since the Latest Bus Pull-Out

    Convert clock strings to minutes and find the shortest wrap-around gap back to a past departure, covering unsorted input, duplicates and an empty schedule.

    Stringstime-parsingmodular-arithmeticwrap-aroundlinear-scan
  • Data Structure DesignMediumAuto-graded
    Rolling-Window Request Throttle Per Client Address

    Simulate a per-IP sliding-window-log throttle over a sequence of requests, using per-key queues with lazy expiry and strict half-open window boundaries.

    Data Structure Designsliding-windowdequehash-maprate-limiter
  • StringsEasyAuto-graded
    Longest Distinct Run and First Singleton Position

    Tests a sliding window with last-seen indices plus a frequency count to find the longest repeat-free substring and the earliest character occurring exactly once.

    Stringssliding-windowhash-mapstringsfrequency-count
  • System DesignMediumModel answer
    Build a Global Remittance Platform: FX, Compliance, Payouts

    Design a service that lets users send money abroad with live FX quotes, fees, limits, multiple funding and payout options, status tracking, refunds and notifications.

    System Designsystem-designpaymentsidempotencysaga
  • Statistics & ExperimentsMediumModel answer
    Testing a Notification-First Account Switcher Ordering

    Judge whether sorting a user's accounts by pending notifications beats sorting by recency, using past logs first and then a well-scoped randomized experiment.

    Statistics & Experimentsab-testingcausal-inferenceposition-biastriggered-analysis
  • Data Structure DesignMediumModel answer
    What Java's volatile Does and Does Not Guarantee

    Explain the Java Memory Model guarantees of volatile fields: visibility, happens-before ordering and reordering limits, its gaps such as compound atomicity, and when to prefer locks or atomics.

    Data Structure Designjavaconcurrencymemory-modelvolatile
  • BehavioralMediumModel answer
    Defending a Major Engineering Project You Led End to End

    Present a significant system you built, covering the problem, your exact role, key design choices, a real failure, and measurable results, then withstand deep follow-up questions on it.

    Behavioralbehavioralproject-deep-diveownershiptrade-offs
  • 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