KatInterview

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

Interview Practice Problems

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

6084
Problems
2256
Auto-graded
15
Topics
273
Added today

Showing 1981–2010 of 6084 results

  • BehavioralMediumModel answer
    Walk Through a Business-Impacting Analytics Project

    Structure a story about an analytics project using STAR, highlighting business impact, data grain, method choice, and handling limitations.

    Behavioralbehavioralanalyticscommunicationproduct-analytics
  • Heaps, Sorting & SearchMediumAuto-graded
    Kth Biggest Value Across a Pair of Ascending Lists

    Find the kth largest value in the union of two ascending integer lists, counting duplicates, ideally using binary search on a partition instead of a full merge.

    Heaps, Sorting & Searchbinary-searchsorted-arraysorder-statisticstwo-arrays
  • SQL & DataMediumModel answer
    Mean Imputation of Numeric Columns in a pandas DataFrame

    Replace NaNs in numeric DataFrame columns with column means, then extend it to in-place updates, per-group means and all-NaN columns, with non-numeric columns left alone.

    SQL & Datapandasmissing-dataimputationgroupby
  • Machine LearningMediumModel answer
    Commercializing a Breakthrough Text-to-Video Model

    Define a comprehensive strategy to transform a raw text-to-video ML model into a viable, scalable commercial product.

    Machine LearningGenerative AIProduct StrategyMLOpsModel Deployment
  • System DesignMediumModel answer
    Design a Real-Time Enterprise Team Chat Platform

    Architect a low-latency, highly durable workplace chat platform supporting real-time delivery, missed message catch-up, channel fanout, and per-conversation ordering.

    System Designsystem-designdistributed-systemswebsocketsdata-modeling
  • SQL & DataEasyModel answer
    Daily Revenue from Impression-Active Ads, Split by Origin

    Write a SQL query that reports, per UTC day and ad origin, how many ads were active and how much revenue those ads earned on days they were active.

    SQL & Datasqljoinsaggregationfan-out
  • BehavioralMediumModel answer
    Presenting a Recent Project: Scope, Ownership and Impact

    Give a structured account of a recent engineering project, covering the problem, scope, your own contribution, measured results and the trade-offs you made.

    Behavioralbehavioralproject-deep-diveownershipimpact-metrics
  • Trees & GraphsHardAuto-graded
    Most Distinct Values After Shifting Each Element

    Choose one shift per element from a given list to maximize distinct results; tests recognizing the problem as bipartite matching and implementing Hopcroft-Karp efficiently.

    Trees & Graphsbipartite-matchinghopcroft-karpgraphsgreedy-pitfalls
  • Stacks & QueuesMediumAuto-graded
    Longest Well-Formed Bracket Run

    Find the length of the longest contiguous well-formed stretch in a string of only round brackets, testing stack-based index tracking and handling of unmatched characters.

    Stacks & Queuesstackstringparenthesestwo-pass
  • Statistics & ExperimentsHardModel answer
    Designing and Evaluating Experiments for Social Feed Ranking Changes

    Define high-quality engagement metrics and design robust A/B tests to evaluate feed ranking algorithms while managing network interference and multi-metric trade-offs.

    Statistics & ExperimentsA/B TestingExperimentationMetric DesignNetwork Effects
  • Statistics & ExperimentsMediumModel answer
    Marketing Channel Budget Optimization with Spend Constraints

    Formulate marketing channel profit, analyze inbound call unit economics, and solve optimal budget allocation under per-channel spend caps.

    Statistics & ExperimentsOptimizationMarketing AnalyticsUnit EconomicsLinear Programming
  • System DesignHardModel answer
    Keeping Tenants Apart in a Shared-Index LLM Assistant

    Design authorization boundaries so a multi-tenant document Q&A agent cannot leak data across tenants or sessions, or be steered by injected instructions in uploaded files.

    System Designmulti-tenancyragauthorizationprompt-injection
  • Machine LearningHardModel answer
    Underfitting Shallow Nets and Dying Gradients in Deep Sigmoid MLPs

    Analyze why a shallow network underfits and a very deep sigmoid network fails to train, using the bias-variance decomposition, the backprop chain rule, ReLU and residual connections.

    Machine Learningbias-variancevanishing-gradientsbackpropagationdouble-descent
  • System DesignMediumModel answer
    Architecting a Fault-Tolerant Payment Gateway Service

    Design an enterprise-grade payment gateway that guarantees at-most-once execution, handles ambiguous network timeouts, and maintains an auditable, immutable ledger.

    System Designsystem-designdistributed-systemsidempotencyevent-driven
  • Dynamic ProgrammingMediumAuto-graded
    Check Palindrome Transformation Within K Removals

    Determine if a given string can be converted into a palindrome by removing at most k characters.

    Dynamic Programmingdynamic-programmingstringsbit-manipulation
  • Heaps, Sorting & SearchMediumAuto-graded
    Order Trading Strategies by Chance of a Positive Day

    Rank strategies by the chance of a positive next-day return, using a predictive spread that includes both daily volatility and uncertainty in the estimated mean.

    Heaps, Sorting & Searchsortingstatisticscustom-keyprobability
  • BehavioralMediumModel answer
    Four-Part Self-Introduction: Motivation, Edge, Pet Peeve, Stack

    Answer a four-part behavioral prompt covering why you want the role, what sets you apart, what you dislike about programming, and which tools and versions you use.

    Behavioralbehavioralself-introductionmotivationcommunication
  • Machine LearningMediumModel answer
    Reviewing a Venv Setup Script and Data-Prep Transformers

    Walk through a virtual-environment shell script, then review an outlier-clipping transformer and three imputers for design, style and testability, and write a key unit test.

    Machine Learningshell-scriptingsklearn-transformersdata-leakageoutlier-handling
  • Math & Bit ManipulationEasyAuto-graded
    Exact Binomial Probability of Coin Flips

    Calculates the exact binomial probability of obtaining a specific number of heads across a series of fair coin tosses.

    Math & Bit Manipulationmathprobabilitycombinatorics
  • Statistics & ExperimentsHardModel answer
    Designing and Analyzing a Core Feed Ad-Insertion Experiment

    Design an A/B test for introducing sponsored video cards into a social feed, addressing metrics, sample size, network interference, multiple testing, and novelty effects.

    Statistics & ExperimentsA/B TestingExperimentationSample SizeNetwork Effects
  • System DesignMediumModel answer
    Unified Hotel Availability Search Across Three Supplier Feeds

    Design a read-only search service that merges hotel availability from three inconsistent suppliers into one normalized, fault-tolerant response with cross-supplier deduplication.

    System Designsystem-designaggregationresiliencecircuit-breaker
  • SQL & DataMediumAuto-graded
    Standardize Global Compensation and Rank Top Earners

    Deduplicate employee records across regions, convert local salaries to USD using historical exchange rates, and rank the top earners.

    SQL & Datadata-manipulationhash-mapsortingsql
  • Statistics & ExperimentsEasyModel answer
    Interpreting Statistically Inconclusive Results from a Product Experiment

    Evaluate an A/B test result with a non-significant p-value, weigh statistical and business factors, and make an actionable launch recommendation.

    Statistics & ExperimentsAB TestingHypothesis TestingConfidence IntervalsProduct Analytics
  • BehavioralMediumModel answer
    Managing QA Priorities Under Tight Deadlines

    Demonstrate your ability to use risk-based testing frameworks, communicate trade-offs, and implement mitigation tactics when project schedules force scope reductions in QA.

    Behavioralbehavioralqa-strategyrisk-managementproject-execution
  • BehavioralMediumModel answer
    Telling Your Hardest Engineering Story and Explaining Your Motivation

    Prepare a structured account of the toughest technical problem you have solved and a credible, specific explanation of why you want to join a particular team.

    Behavioralbehavioralstar-methodmotivationownership
  • Heaps, Sorting & SearchHardAuto-graded
    Priority Task Scheduler with Tag Filtering and Splicing

    Schedule tasks subject to dependency constraints, priority ordering, tag-based task filtering with dependency splicing, and cycle detection.

    Heaps, Sorting & Searchheaps-sortingtrees-graphstopological-sort
  • Math & Bit ManipulationEasyAuto-graded
    Calculate Progressive Income Tax in Cents

    Determine progressive income tax in cents given bracket thresholds and percentage rates using integer math.

    Math & Bit Manipulationmatharrayssimulation
  • System DesignHardModel answer
    Design a Decoupled Online RL Fine-Tuning Pipeline for a Live Chatbot

    Design an asynchronous RL fine-tuning pipeline that improves a deployed chat LLM from live traffic, covering staleness, KL control, reward hacking, safety gates and cost.

    System Designreinforcement-learningrlhfllm-infrastructureoff-policy
  • 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