KatInterview

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

Interview Practice Problems

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

6025
Problems
2231
Auto-graded
15
Topics
273
Added today

Showing 961–990 of 6025 results

  • System DesignHardModel answer
    Design an In-Memory Auto-Complete Service and Scale It Self-Contained

    Design an autocompletion engine using a custom in-memory trie, cover node memory optimizations and hot swaps, and scale out horizontally without adding third-party clusters.

    System Designsystem-designtriecachingscaling
  • BehavioralEasyModel answer
    Data Science Internship Screen: Four Behavioral Prompts

    Prepare structured, specific answers to four behavioral prompts for a data science internship screen, covering introduction, a project deep dive, a hard project, and fast learning.

    Behavioralbehavioraldata-scienceinternshipproject-deep-dive
  • Statistics & ExperimentsMediumModel answer
    Quantifying Business Value from ETA Reduction in Ride-Hailing

    Evaluate the business impact of a 10% lower pickup ETA using robust experimental design, interference-aware causal methods, and an NPV framework accounting for cross-tier cannibalization.

    Statistics & ExperimentsA/B TestingExperiment DesignCausal InferenceMarketplace Economics
  • Statistics & ExperimentsHardModel answer
    Synthetic Control for a Single-Unit Rollout: Validity and Inference

    Defend synthetic control as a causal design for one treated unit, covering its assumptions, predictor selection, regularization, permutation-based inference, and fallback options.

    Statistics & Experimentssynthetic-controlcausal-inferenceplacebo-testspanel-data
  • Statistics & ExperimentsHardModel answer
    Measuring a Premium-Only Feature Launch: Goals, Metrics, ROI

    Plan how to judge a feature reserved for paying users: pick a goal, build a metric hierarchy, estimate ROI, quantify cannibalization, and design the experiment and logging.

    Statistics & Experimentsproduct-analyticsab-testingmetricsroi
  • Data Structure DesignEasyAuto-graded
    Replay Tennis Game Commands and Report Scores

    Simulate a single tennis game from a command log, tracking points, deuce, advantage and the winner, and return each score query's text.

    Data Structure Designsimulationstate-machinedesignstrings
  • Heaps, Sorting & SearchMediumAuto-graded
    Boosting Your Budget With a Limited Number of Ventures

    Greedy selection with a sorted unlock pointer and a max-heap: repeatedly pick the most profitable venture whose entry threshold fits the current funds, up to a fixed number of picks.

    Heaps, Sorting & Searchheapgreedysortingpriority-queue
  • Data Structure DesignHardAuto-graded
    Versioned Cache and Longest Dependency Chain

    Process a series of timestamped key-value operations and find the longest non-cyclic path in a dependency graph.

    Data Structure Designdesign-dstrees-graphsdynamic-programmingbinary-search
  • StringsMediumModel answer
    Build a Streaming Lisp-Style Expression Reader with Exact Error Positions

    Write a single-pass reader for a small Lisp-like syntax with integers, symbols and nested lists, reporting the first error with a clear message and exact character index.

    Stringsparsingrecursive-descenterror-handlings-expression
  • Data Structure DesignMediumModel answer
    Designing a Validated In-Memory Cache for Repeated Parsing

    Speed up a script that repeatedly parses files by adding a thread-safe, bounded, in-memory cache, and justify its keys, eviction, staleness checks and complexity.

    Data Structure Designcachinghash-maplruconcurrency
  • Data Structure DesignHardAuto-graded
    Simulate Alternating Tic-Tac-Toe Game Engine

    Process a series of game instructions to maintain state, validate turns and positions, and return outcome status for each operation.

    Data Structure Designdesign-dsarraysstate-machine
  • Trees & GraphsMediumAuto-graded
    Balanced BST Level-Order Output from a Sorted Sequence

    Build a height-balanced BST from a sorted list using a fixed middle-element rule, then serialize it level by level with null placeholders.

    Trees & Graphsbinary-search-treedivide-and-conquerrecursionlevel-order-traversal
  • Data Structure DesignMediumAuto-graded
    Shift Ledger: Rates, Promotions and Bonus Windows

    Simulate a command stream for a shift ledger with deferred pay-rate changes, merged global bonus windows and a ranking of employees by hours worked.

    Data Structure Designdesignsimulationinterval-mergingsorting
  • BehavioralHardModel answer
    Staff-Level Walkthrough of a Past Engineering Project

    Prepare and deliver an architecture-focused presentation of a complex past project, covering ownership, tradeoffs, failures, impact, and hindsight, then defend it under senior-level follow-ups.

    Behavioralproject-deep-divearchitectureleadershiptradeoffs
  • System DesignMediumModel answer
    Build a Reliable Card Payment Backend with External PSPs

    Design a backend that takes a card payment from checkout through an external processor to a recorded, reconcilable transaction, with no double charges and no lost successes.

    System Designpaymentsidempotencyledgerreconciliation
  • Machine LearningHardModel answer
    Designing a Quality Gate for a Permission-Aware Document Q&A Assistant

    Design an offline and online evaluation system for a retrieval-based enterprise assistant, covering retrieval, faithfulness, citations, abstention, access control, freshness and cost.

    Machine Learningragllm-evaluationretrieval-metricsllm-as-judge
  • Stacks & QueuesMediumModel answer
    Build a Tiny Expression Language Interpreter in Three Stages

    Implement a lexer, recursive-descent parser and evaluator for a small integer language with variables, unary minus, precedence, truncating division and print.

    Stacks & Queuesparsinginterpreterrecursive-descentast
  • Arrays & HashingMediumAuto-graded
    Clockwise Grid Walk Around Obstacles and Visited Cells

    Simulate a clockwise inward walk over a grid with obstacle cells, turning on edges, obstacles and visited cells, and stopping when every direction is closed.

    Arrays & Hashingmatrixsimulationspiralgrid
  • Statistics & ExperimentsMediumModel answer
    Pilot Design for Adding Bike Couriers to a Dense City Core

    Design an experiment to decide whether adding bicycle couriers to a car-only delivery marketplace improves efficiency, covering metrics, geo randomization, confounders and cannibalization.

    Statistics & Experimentsab-testingmarketplacecluster-randomizationswitchback
  • Statistics & ExperimentsHardModel answer
    Designing a Native E-Commerce Shopping Module Experiment

    Define a comprehensive metric hierarchy, interference strategy, power analysis, and multi-objective launch framework for an embedded feed feature.

    Statistics & ExperimentsA/B TestingExperiment DesignMetric DesignCUPED
  • System DesignMediumModel answer
    Per-User Impression Limits Over a Sliding Time Window

    Design a low-latency service that decides whether an ad may be shown to a user, enforcing "at most N impressions in the last W" caps across ad, group and campaign scopes.

    System Designsystem-designrate-limitingsliding-windowdistributed-systems
  • Stacks & QueuesMediumAuto-graded
    Parenthesized Integer Calculator with Unary Negation

    Evaluate an integer expression with +, -, *, /, parentheses and unary minus in one iterative pass, using precedence rules and division that truncates toward zero.

    Stacks & Queuesstackparsingexpression-evaluationshunting-yard
  • BehavioralEasyModel answer
    Demonstrating Product Sense and Project Impact

    Articulate an end-to-end analytics project, covering problem framing, metric trade-offs, experimental rigor, quantifiable outcomes, and practical reflections.

    Behavioralbehavioralproduct-thinkexperimentationmetrics
  • Trees & GraphsMediumAuto-graded
    Locked Gates Grid: Fewest Steps With Collected Keys

    Find the fewest moves through a grid where lowercase cells give keys and uppercase cells are gates, using BFS over position plus the set of collected keys.

    Trees & Graphsbfsgridstate-space-searchkeys-and-doors
  • Trees & GraphsMediumAuto-graded
    Reconstruct Hierarchical Execution Trees from Trace Records

    Reassemble an unordered collection of trace span objects into a forest of child-linked execution trees sorted chronologically.

    Trees & Graphstreeshash-tablesortinggraph
  • Data Structure DesignMediumAuto-graded
    Resumable Batch Reader for a Linked Page Feed

    Simulate a stateful reader that serves batches of N items in order from a chained page feed, buffering surplus items and handling empty pages, loops and the end of the feed.

    Data Structure Designdesignpaginationbufferingsimulation
  • StringsMediumAuto-graded
    Tally Slices Whose Letters Are All Different

    Count every contiguous slice of a lowercase string in which no letter appears twice, using a linear-time sliding window.

    Stringssliding-windowtwo-pointersstringscounting
  • System DesignHardModel answer
    Dimensional Model for a Marketplace Analytics Warehouse

    Design fact and dimension tables for a marketplace to serve five business metrics, covering grain, keys, partitioning, late data, deduplication, anonymous users and changing seller attributes.

    System Designdata-warehousedimensional-modelingstar-schemascd
  • BehavioralHardModel answer
    Defining and Implementing AI Safety in Software Engineering

    Articulate a pragmatic framework for AI safety, balance short-term vs. long-term risks, analyze social impacts, and incorporate safety mechanisms across the software lifecycle.

    Behavioralai-safetybehavioralengineering-practicesproduct-lifecycle
  • Machine LearningMediumModel answer
    Real-Time Risk Scoring for Account Linking and Payments

    Design an ML pipeline that scores bank-link attempts, identity checks, and transactions in real time, mapping risk to graded actions while keeping false positives low.

    Machine Learningfraud-detectionml-system-designgraph-featuresimbalanced-data