KatInterview

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

Interview Practice Problems

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

5985
Problems
2218
Auto-graded
15
Topics
271
Added today

Showing 301–330 of 3767 results

  • BehavioralMediumModel answer
    Walk Through a Large Infrastructure Project You Drove

    Describe a multi-team infrastructure project you owned from start to finish, covering your technical direction, stakeholder buy-in, risk and incident handling, trade-offs, and measured results.

    Behavioralbehavioralleadershipinfrastructurestakeholder-management
  • System DesignMediumModel answer
    Keeping Courier Payouts Correct When the Processor Is Flaky

    Design a payout pipeline that stays correct and pays each courier exactly once when the downstream payment processor is slow, erroring, or down for hours.

    System Designidempotencyretriescircuit-breakerdead-letter-queue
  • Statistics & ExperimentsMediumModel answer
    Metrics, Experiment Design and Sample Sizing for a Consumer App

    Choose a consumer app, model a new revenue stream, define metrics, prioritize an improvement, size an A/B test for a 15% to 17% conversion lift, and defend its cost.

    Statistics & Experimentsab-testingsample-sizeproduct-metricspower-analysis
  • System DesignMediumModel answer
    Building a Request Throttling Service That Scales Across Regions

    Design a service that decides per caller whether each API request is allowed, then scale it to many users and regions and make its limits more accurate, discussing the trade-offs.

    System Designrate-limitingdistributed-systemsredistoken-bucket
  • Trees & GraphsMediumModel answer
    Mapping a Hidden Maze: Shortest Route for a Sensing Robot

    A robot in an unseen grid senses neighbours for free and pays per move. Find a shortest route to a target, or return to the start and report failure if none exists.

    Trees & Graphsbfsgridonline-explorationshortest-path
  • BehavioralMediumModel answer
    Two Behavioral Stories: Unclear Goals and Principled Pushback

    Prepare two structured stories: one about producing results when goals are undefined, and one about disagreeing with a colleague or manager while preserving trust and committing to the outcome.

    Behavioralbehavioralstar-methodambiguityconflict-resolution
  • SQL & DataMediumModel answer
    Rolling Spend View, Dependent Inserts, and Price Change Fallout

    Build a 7-day spend view over three tables, add rows in foreign-key order, update statuses and prices, then reason about how a price change distorts past spend.

    SQL & Datasqlviewsleft-joininsert-update
  • Machine LearningHardModel answer
    Linear Regression, Tree Ensembles, Rare Fraud, and Seasonal Forecasting

    Explain OLS and its assumptions, compare bagging, random forests and boosting, handle a 0.2% positive class, and outline a forecasting pipeline for data with trend and seasonality.

    Machine Learningolsensemblesclass-imbalancetime-series
  • System DesignMediumModel answer
    Build a Fleet-Wide Error Frequency Tracking Platform

    Design a shared platform that ingests error logs from many apps, collapses similar messages into one signature, and answers count, trend and top-N queries reliably during incident spikes.

    System Designsystem-designstreamingaggregationtime-series
  • Trees & GraphsMediumModel answer
    Right Edge of a Tree and Minimal Bracket Removal

    Two linked tasks: list the nodes visible from the right of a binary tree, and delete the fewest parentheses from a string so the rest is balanced.

    Trees & Graphsbinary-treebfsstackstrings
  • System DesignHardModel answer
    Atomic Updates Across Orders, Payments and Inventory Services

    Design a protocol that keeps writes consistent across several services and databases, comparing 2PC, 3PC and Sagas, and covering failures, retries, timeouts and delivery guarantees.

    System Designdistributed-transactionstwo-phase-commitsagaidempotency
  • System DesignHardModel answer
    Enterprise Document Q&A with Retrieval and Generation at Scale

    Design an end-to-end, multi-tenant retrieval-augmented question-answering platform over large, mixed-format document collections, with strict isolation, freshness, latency and cost targets.

    System Designragvector-searchml-system-designhybrid-retrieval
  • System DesignMediumModel answer
    Real-Time Chat for Mass-Audience Livestreams

    Design a chat feed for livestreams where one broadcast may have over a million viewers, with sub-half-second delivery, durable storage and live moderation.

    System Designfan-outwebsocketkafkareal-time
  • Machine LearningMediumModel answer
    Fixing an Underfit Boosted-Tree Model: Which Knob to Loosen?

    Pick the one hyperparameter that, when lowered, makes a gradient-boosted tree ensemble more flexible, justify it, and describe how to confirm underfitting.

    Machine Learninggradient-boostingunderfittinghyperparameter-tuningbias-variance
  • SQL & DataMediumModel answer
    Trial Conversion and Day-30 Return Rates per Experiment Arm

    Write one SQL query comparing control and treatment on 7-day trial conversion and on a week-long return window starting 30 days after the trial begins.

    SQL & Datasqlab-testingcohort-analysisretention
  • System DesignMediumModel answer
    Design a Scalable API Rate Limiter

    Architect a high-performance, distributed rate limiting system for an API gateway handling high-throughput, bursty traffic.

    System Designrate-limiterdistributed-systemsapi-gatewayredis
  • System DesignMediumModel answer
    Finding Identical Files in a Huge Directory Tree

    Group byte-identical files across a directory tree too large for memory, minimizing disk reads, staying correct under hash collisions, and scaling out across workers.

    System Designdeduplicationhashingexternal-memoryfile-systems
  • BehavioralMediumModel answer
    Prove Your Engineering Work Moved a Business Metric

    Describe a project you drove for a business or operational result, covering how you set success criteria, what you measured, and how you showed your own work caused the change.

    Behavioralbehavioralimpactmetricsattribution
  • Machine LearningMediumModel answer
    Building a Classifier for Authentic vs Synthetic DNA Sequences

    Design a robust system to classify genuine vs generated DNA sequences, leveraging a massive unlabelled real corpus, minimal ground-truth labels, custom negative generators, and bio-aware metrics.

    Machine Learningmachine-learningsequence-modelingsemi-supervised-learninganomaly-detection
  • System DesignHardModel answer
    Design a Scalable Distributed Task Processing Engine

    Design an architecture for a multi-tenant distributed task execution platform handling millions of parallel jobs, emphasizing fault tolerance, scheduling, leases, and idempotency.

    System Designsystem-designdistributed-systemsfault-tolerancequeues
  • Machine LearningEasyModel answer
    Choosing a Search Strategy for Model Hyperparameters

    Compare strategies for searching hyperparameters, from hand tuning to Bayesian and early-stopping methods, weighing cost, parallelism and sample efficiency.

    Machine Learninghyperparameter-tuningbayesian-optimizationrandom-searchhyperband
  • BehavioralMediumModel answer
    Behavioral Prep: Motivation, Pivots and Fast Calls for a PM Loop

    Prepare structured answers for five common product-manager behavioral prompts: company motivation, role fit, a mid-project pivot, a decision under ambiguity, and a five-year plan.

    Behavioralbehavioralproduct-managerleadership-principlesstar-method
  • System DesignHardModel answer
    Building a Global Multi-Tenant Scheduling and Events Platform

    Design a calendar backend for hundreds of millions of users covering events, recurrence, time zones, sharing, reminders, sync, and storage choices, with APIs, schemas, queries, and scaling.

    System Designsystem-designcalendarrecurrencesharding
  • Statistics & ExperimentsHardModel answer
    Sample Size Planning for a Conversion Experiment and Its Levers

    Size a two-arm conversion test from a baseline rate and relative lift, then explain how tighter alpha, higher power, uneven splits, clustering, interim looks and overdispersed counts change the required n.

    Statistics & Experimentspower analysissample sizetwo-proportion z-testdesign effect
  • Statistics & ExperimentsMediumModel answer
    Reading a Flight-Delay Regression: Metrics and Diagnostics

    Walk through interpreting and diagnosing a multiple linear regression for flight delays: standardized coefficients, fit metrics, collinearity, heteroskedasticity, intercepts, and misspecified residuals.

    Statistics & Experimentslinear-regressionmulticollinearityheteroskedasticitymodel-diagnostics
  • Machine LearningMediumModel answer
    Decoding Text from Next-Token Probabilities: Greedy vs Beam

    Build a greedy decoder and a width-k beam search over a next-token model, return each sentence with its probability, and explain why long outputs score low and how to correct it.

    Machine Learningbeam-searchdecodinglanguage-modelslog-probabilities
  • 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