KatInterview

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

Interview Practice Problems

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

6016
Problems
2229
Auto-graded
15
Topics
274
Added today

Showing 2941–2970 of 3787 results

  • Data Structure DesignMediumModel answer
    Build a Time-Travel Key-Value Store with Snapshots

    Design a key-value store that supports cheap snapshots and historical reads without copying the entire map on each snapshot.

    Data Structure Designsnapshotsversioningbinary-searchcopy-on-write
  • BehavioralEasyModel answer
    Navigating AI Tools, Deadlines, and Ambiguous Ownership

    Prepare structured responses about using AI in development, handling technical complexity under time pressure, stepping up beyond your role, and responding to feedback.

    Behavioralbehavioralleadershipcommunication
  • System DesignHardModel answer
    Designing a High-Traffic Campaign Donation System

    Build a payment platform for a short-duration global fundraiser with real-time totals, idempotency, fraud prevention, and spike handling.

    System Designpaymentsscalabilitydistributed-systemsreal-time
  • Data Structure DesignHardModel answer
    Build a thread-safe sliding-window percentile monitor

    Implement a concurrent data structure that tracks latency measurements and computes approximate percentiles over a rolling time window with bounded memory.

    Data Structure Designconcurrencypercentileshistogramsliding-window
  • BehavioralEasyModel answer
    Walk Me Through Your Technical Stack and Why You Built It That Way

    Describe the technologies you work with most, the reasoning behind each choice, and the real-world scale at which you've operated them.

    Behavioraltech stacktrade-offssystem ownershipcommunication
  • SQL & DataEasyModel answer
    Highest Spender in the Company's First Decade

    Identify which user spent the most money during the initial ten-year period starting from the company's very first transaction.

    SQL & Datasqlaggregationwindow-functionsdate-filtering
  • Statistics & ExperimentsHardModel answer
    Understanding the t-Statistic in Hypothesis Testing

    Explain the t-statistic formula, its intuition as signal-to-noise, how sample size affects it, and when to use t versus z in practice.

    Statistics & Experimentshypothesis-testingstatistical-inferencet-testassumptions
  • Data Structure DesignMediumModel answer
    Order Fulfillment Engine with Backorder Queue

    Process a stream of orders and restocks against live inventory, fulfilling backorders in arrival order before replenishing on-hand stock.

    Data Structure Designhash-mapqueuesimulationamortized-analysis
  • System DesignMediumModel answer
    Design a Social Feed Service with Real-Time Updates

    Build a high-scale microblogging system supporting post creation, social connections, and personalized feeds with near real-time delivery.

    System Designdistributed-systemscachingdata-modelingscalability
  • System DesignHardModel answer
    Build an Event-Loop Request Batcher with Deduplication

    Design and implement an asynchronous request coalescer that collects individual key lookups into windowed batches, handles deduplication, and correlates responses.

    System Designasyncbatchingevent-loopconcurrency
  • Data Structure DesignMediumModel answer
    Design a Money Transfer System with Pending Approvals

    Build an in-memory banking service supporting accounts, transaction history, and two-party transfers that only settle when the recipient explicitly accepts.

    Data Structure Designconcurrencyidempotencystate-machineobject-oriented-design
  • BehavioralMediumModel answer
    Communicating Project Setbacks to Leadership and Teams

    Explain how you've communicated a significant setback—a delay, critical bug, or unwelcome change—to affected parties while maintaining credibility.

    Behavioralcommunicationleadershipconflict-resolution
  • BehavioralMediumModel answer
    Project Ownership, Collaboration, and Growth: Behavioral Deep Dive

    Walk through five behavioral dimensions — impact, conflict, cross-functional trade-offs, failure, and feedback — using structured stories backed by concrete evidence.

    Behavioralbehavioralleadershipteamworkcommunication
  • SQL & DataMediumModel answer
    Fix a Promotion Join That Silently Drops Sales Rows

    Diagnose and repair a multi-table SQL query that loses rows due to a NULL-breaking join, UTC date bucketing, and promotion fan-out inflation.

    SQL & Datajoinsdatetimewindow-functionsdebugging
  • System DesignEasyModel answer
    pytest Fixtures, Decorators, and Generators: Core Python Mechanics

    Three-part fundamentals question on how pytest fixtures are scoped and torn down, how decorators wrap functions, and how generators stream data lazily.

    System Designpythonpytestgeneratorsdecorators
  • System DesignMediumModel answer
    Multi-Vendor Order Fulfillment System

    Design a service that queries multiple vendor APIs concurrently, selects the best offer within constraints, and coordinates payment with order placement.

    System Designdistributed-systemssaga-patternidempotency
  • BehavioralHardModel answer
    Own the Miss and Bridge the Divide

    Demonstrate accountability for a project that fell short and navigate a real cross-functional disagreement using structured storytelling and concrete outcomes.

    Behavioralaccountabilityconflict-resolutionstakeholder-managementcross-functional
  • Data Structure DesignMediumModel answer
    Indentation-Aware Code Folding Engine

    Build a class that collapses and restores indentation-defined code blocks, tracking nested fold state and remapping display line numbers after each operation.

    Data Structure Designsimulationmonotonic-stackdata-structure-design
  • Data Structure DesignMediumModel answer
    Short-Circuit Async Boolean: Cancel Early, Return Fast

    Implement an async function that resolves true the moment any concurrent task returns true, cancelling all remaining work immediately.

    Data Structure Designasyncioconcurrencycancellationpython
  • Statistics & ExperimentsHardModel answer
    Build an experimentation system for product launches

    Design a platform that randomly assigns users to variants, logs their behavior, computes metrics, and determines statistical significance.

    Statistics & Experimentsexperimentationstatistical-analysisdistributed-systems
  • Statistics & ExperimentsHardModel answer
    Designing an Experiment to Measure Creative Quality Impact on Ads

    Design a rigorous experiment to determine whether higher-quality ad creatives causally improve performance, accounting for advertiser selection bias and marketplace effects.

    Statistics & Experimentsexperimentationcausal-inferenceselection-biasa-b-testing
  • System DesignHardModel answer
    Real-Time Location Aggregation System with Consensus Protocols

    Build a system that aggregates streaming location data into grid cells, surfaces high-activity regions, and compare distributed consensus approaches.

    System Designstreamingdistributed-systemsconsensusgeospatial
  • BehavioralMediumModel answer
    Demonstrating Value Alignment and Critical Assessment

    Articulate why you connect with a specific organizational principle, provide evidence of living that principle under pressure, and offer a substantive critique.

    Behavioralculture-fitvaluesleadershipcritical-thinking
  • Trees & GraphsHardModel answer
    Logical Inference Engine: TRUE, FALSE, or Undetermined

    Build a function that classifies propositions as definitely true, definitely false, or undetermined given a set of facts and implication rules.

    Trees & Graphsgraphimplication2-SATDFS
  • System DesignMediumModel answer
    From Virtual Address to Physical Memory: A Full Walkthrough

    Trace every step a CPU takes to resolve a virtual address — TLB, page-table walk, MMU checks, page faults, and context-switch invalidation.

    System Designoperating-systemsvirtual-memoryTLBMMU
  • Data Structure DesignMediumModel answer
    Build an In-Memory Notebook System with Rollback

    Design and implement a versioned in-memory notebook system supporting CRUD, case-insensitive search, user management, and full state rollback via a change log.

    Data Structure Designversioningooprollbackhashmap
  • Statistics & ExperimentsMediumModel answer
    Measuring and Experimenting on Spam Without a Label Table

    Design proxy metrics to monitor spam and user experience, diagnose a drop in report rate, and build a valid A/B test when spammers are rare.

    Statistics & Experimentsmetric-designexperiment-designspama-b-testing
  • SQL & DataMediumModel answer
    Rolling Window Metrics for Digital Ad Campaign Data

    Compute impression rankings, conversion rates by format, per-user revenue, and peak traffic hours from ad event tables using SQL aggregation and joins.

    SQL & Datasqlaggregationjoinswindow-functions
  • System DesignMediumModel answer
    Card authorization with deferred tips and batch settlement

    Build a payment platform for retail terminals that authorizes transactions, accepts post-authorization tip adjustments, and settles batches nightly.

    System Designpaymentsdistributed-systemsidempotencybatch-processing
  • BehavioralMediumModel answer
    Leading Cross-Functional Teams Through Conflict and Recovery

    Demonstrate leadership across engineering teams facing priority conflicts, trade-off decisions under pressure, and recovering from a product that didn't meet user needs.

    Behavioralleadershipconflict-resolutionstakeholder-managementproduct-delivery