KatInterview

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

Interview Practice Problems

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

6101
Problems
2258
Auto-graded
15
Topics
270
Added today

Showing 3631–3660 of 6101 results

  • Trees & GraphsMediumModel answer
    Threaded Comment Feed: Filtering, Nesting, and Persistent Sort

    Transform a flat array of comments into a sorted, nested, filterable tree while persisting the user's sort preference across sessions.

    Trees & Graphstree-constructiondfslocalStoragefrontend-data
  • SQL & DataMediumModel answer
    Retail Spend Analytics: Aggregation and Regional Rankings

    Write two SQL queries against a payment dataset to find top vendors globally and per region using aggregation, joins, and window-based dense ranking.

    SQL & Datawindow-functionsaggregationCTEranking
  • Data Structure DesignMediumAuto-graded
    Batch Spreadsheet Cell Evaluator with Cycle Rejection

    Simulate setting and reading spreadsheet cells whose values are integers or sums of references, evaluating lazily and rejecting updates that would form cycles.

    Data Structure Designgraphscycle-detectionexpression-evaluationdependency-tracking
  • Data Structure DesignMediumModel answer
    Multiset with O(1) Insert, Delete, and Uniform Random Sampling

    Build a collection supporting duplicates with constant-time insertion, deletion, and uniform random selection from all stored occurrences.

    Data Structure Designdata-structureshash-tablesrandomization
  • System DesignMediumModel answer
    Design a Cloud-Based Development Workspace Service

    Build a system that provisions on-demand containerized development environments with browser-based editing, terminal access, and port forwarding.

    System Designcloud-infrastructurecontainersstate-management
  • Trees & GraphsMediumAuto-graded
    Shared Root of Two Nodes in a Binary Search Tree

    Tests whether a candidate can exploit BST ordering to locate the deepest node that is an ancestor of both targets without searching the entire tree.

    Trees & Graphsbinary-search-treelowest-common-ancestortree-traversal
  • BehavioralMediumModel answer
    Tell Me About a Time You Led Through Resistance or Ambiguity

    Demonstrate leadership, ownership, and measurable impact by crafting structured behavioral stories around influence, resilience, and tackling hard problems.

    BehavioralSTAR methodleadershipownershipinfluence
  • Statistics & ExperimentsHardModel answer
    Staggered Rollout Causal Analysis: Designing a Robust Estimation

    Design a staggered-adoption DiD for a phased 50-region rollout that stays valid under heterogeneous, dynamic treatment effects, from estimator choice to inference.

    Statistics & Experimentscausal-inferencedifference-in-differencespanel-dataevent-study
  • Trees & GraphsMediumAuto-graded
    Left and Right View of a Binary Tree Using BFS and DFS

    Tests understanding of binary tree traversal by computing boundary nodes at each depth using both breadth-first and depth-first strategies.

    Trees & Graphsbinary-treebfsdfstree-traversal
  • SQL & DataMediumModel answer
    Daily Driver Earnings with Time-Based Bonuses

    Calculate a courier's total earnings per day from delivery records, applying distance rates, minimum guarantees, and optional surge multipliers for high-demand hours.

    SQL & Datadata-processingbusiness-logictime-windows
  • Data Structure DesignMediumModel answer
    Two-Tier API Rate Limiter with a Sliding Window

    Design a thread-safe rate limiter that enforces both a per-endpoint quota and a shared global quota using a rolling time window.

    Data Structure Designrate-limitingconcurrencysliding-windowthread-safety
  • System DesignHardModel answer
    Building a High-Throughput Payment Processing Platform

    Design a payment platform supporting wallet transfers, card transactions, refunds, and chargebacks with strong consistency, exactly-once semantics, and audit compliance.

    System Designpaymentsdistributed-systemsconsistencyfinancial-systems
  • System DesignMediumModel answer
    Design the Backend for a Real-Time Multiplayer Board Game

    Design a backend that manages live game state, enforces turn-based rules, and delivers move updates in real time across thousands of concurrent sessions.

    System Designwebsocketsconcurrencyreal-timegame-state
  • Data Structure DesignMediumModel answer
    Build a Reference-Counted Shared Ownership Pointer in C++

    Implement a thread-safe shared ownership smart pointer class template from scratch, covering copy/move semantics, atomic reference counting, and correct destruction.

    Data Structure Designc++memory-managementconcurrency
  • Heaps, Sorting & SearchHardAuto-graded
    Minimum Lexicographic Sequence with Precedence Constraints

    Find the smallest valid ordering of numbered items when some must precede others, or detect when circular dependencies make ordering impossible.

    Heaps, Sorting & Searchtopological-sortgraphheapgreedy
  • Statistics & ExperimentsMediumModel answer
    Measuring the Impact of Sorting Inboxes by Unread Count

    Design a data-driven evaluation and A/B experiment to decide whether reordering a multi-account switcher by unread message count improves user engagement.

    Statistics & Experimentsexperiment-designmetric-designcausal-inference
  • SQL & DataMediumAuto-graded
    Multi-Table Sales Analytics with Referral Tracking

    Tests relational data manipulation through joins, aggregations, filtering, and ranking across interconnected tables.

    SQL & Dataaggregationjoinsfilteringsorting
  • SQL & DataMediumModel answer
    Social Network Feed Analytics with SQL Aggregation

    Build SQL queries to analyze user engagement patterns across friend and non-friend content, handling temporal aggregation and interaction scoring.

    SQL & Datasqldata-aggregationwindow-functionsjoins
  • Dynamic ProgrammingMediumAuto-graded
    Largest Sum in Any Consecutive Sequence

    Tests understanding of dynamic programming through finding the maximum sum achievable by selecting adjacent elements from an array.

    Dynamic Programmingarrayskadanesubarrayoptimization
  • Statistics & ExperimentsMediumModel answer
    Investigate a Sudden Drop in Email-Driven Job Applications

    Walk through the email-to-application funnel to separate a tracking bug, a delivery failure, and a relevance problem from each other.

    Statistics & Experimentsproduct analyticsfunnel analysisroot cause analysisrecommendation systems
  • Statistics & ExperimentsMediumModel answer
    Designing and Analyzing a Free-Trial Growth Experiment

    Design metrics, choose analysis populations, identify pitfalls, and make a business decision for an A/B test offering a one-month free trial.

    Statistics & Experimentsab-testingcausal-inferencemetricsexperimentation
  • Statistics & ExperimentsMediumModel answer
    Designing Experiments Across a Three-Sided Delivery Marketplace

    Reason through A/B design, randomization units, and root-cause diagnosis for delivery-marketplace programs, promotion systems, and a spike in cancellations.

    Statistics & Experimentsexperimentationcausal-inferencemarketplacemetrics
  • System DesignEasyModel answer
    Streaming Text Labeling Pipeline with Retry Logic

    Build a function that reads a CSV of text records, labels each one via an external API with retries, and writes ordered JSON Lines output with per-row failure handling.

    System Designpythonconcurrencydata-pipelineerror-handling
  • Data Structure DesignMediumAuto-graded
    Freelance Crew Pay Tracker With Rolling Settlements

    Tests the ability to design an in-memory ledger class driven by an operation list, maintaining running cost totals and an idempotent pay-cutoff pointer.

    Data Structure Designdesignsimulationhash-map
  • Machine LearningMediumModel answer
    Design an RL-Trained Q&A Assistant with Low-Latency Serving

    Design the full stack for a question-answering assistant: real-time serving, training data collection, RL reward design, and mitigations for reward failure modes.

    Machine Learningrl-from-human-feedbackllm-servingreward-designrag
  • System DesignMediumModel answer
    Designing an isolated notebook execution platform

    Design a multi-tenant cloud notebook platform that runs untrusted user code in isolated sandboxes and streams output, with focus on isolation, lifecycle, persistence and observability.

    System Designsystem-designsandboxingmulti-tenancystreaming
  • System DesignMediumModel answer
    Real-Time Collaborative Text Editing System Design

    Design a multi-user document editor with concurrent edits, convergence, offline reconnect, version history, permissions, and live presence.

    System Designcollaborative-editingcrdtotsystem-design
  • Machine LearningMediumModel answer
    Building a Multi-Model Enterprise AI Research Platform

    Design a production agent system for financial analysts, covering model customization strategies, agent orchestration patterns, structured output enforcement, and multi-tenant serving.

    Machine Learningllm-systemsagent-designfine-tuningproduction-ml
  • System DesignMediumModel answer
    Designing a Live Trivia Elimination Game with Spectator Fan-Out

    Design the backend for a live riddle battle: rooms partitioned by coordinator, server-authoritative timing, crash recovery, and spectator isolation.

    System Designsystem-designpartitioningfailure-recoverypub-sub
  • Trees & GraphsMediumAuto-graded
    Multi-Part Algorithm Challenge: Grids, Medians, and Traversals

    Tests implementation of connected-component search in grids, efficient median computation across sorted sequences, and breadth-first and depth-first graph traversals.

    Trees & Graphsgraphsarraysbinary-searchbfs