KatInterview

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

System Design Interview Problems

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

5991
Problems
2219
Auto-graded
15
Topics
270
Added today

Showing 751–780 of 1136 results

  • System DesignMediumModel answer
    Database Indexes: Read/Write Trade-offs and Query Tuning

    Explain how relational indexes work, why they help reads but hurt writes, and walk through a systematic process for diagnosing and fixing a slow SQL query.

    System Designdatabasessqlperformanceindexing
  • System DesignMediumModel answer
    Design a Seat Reservation System for Live Events

    Design a distributed ticketing platform that handles high search traffic, prevents duplicate seat bookings, and survives payment service failures.

    System Designconcurrencydistributed-systemsconsistencydatabases
  • System DesignMediumModel answer
    Designing Access Control for Social Feed Visibility

    Design a system that enforces per-post audience rules across feed and permalink reads at high QPS while staying correct under friendship and privacy-setting changes.

    System Designaccess-controlcachingsocial-graphfeed-system
  • System DesignHardModel answer
    Architect the Write Path and Crash Recovery for a Cloud-Native Database

    Design a distributed database that separates compute from storage, detailing how writes are committed durably, how a failed node recovers, and how quorum keeps the write path moving under slow or failed storage nodes.

    System Designdistributed-systemsdurabilityreplicationquorum
  • System DesignHardModel answer
    RF & Analog IC Design: Core Concepts for Circuit Interviews

    Work through receiver architectures, impedance matching, PLLs, VCOs, op-amp noise, and charge-pump non-idealities as a structured oral exam.

    System Designanalog-designRFPLLoscillators
  • System DesignMediumModel answer
    Designing Cross-Region Data Consistency for a Fintech Platform

    Architect a multi-region data layer for a global payments platform that balances low-latency reads, strongly consistent money movement, and graceful regional failover.

    System Designdistributed-systemsdata-replicationconsistencytransactions
  • System DesignMediumModel answer
    Build a Controlled Enterprise Agent System with State and Guardrails

    Design a platform that executes agent tasks safely in enterprise environments, balancing model autonomy with workflow constraints and permission checks.

    System Designagentsplatform-architecturesecuritylatency
  • System DesignMediumModel answer
    Build a Real-Time Search Autocomplete System

    Design an autocomplete service that delivers personalized query suggestions with sub-50ms latency, handling millions of concurrent users and live trend updates.

    System Designautocompletelow-latencydistributed-systemscaching
  • System DesignMediumModel answer
    Build a Recurring Billing Engine for a Subscription Service

    Design the backend that manages subscriptions, handles recurring charges, processes plan changes mid-cycle, and retries failed payments at scale.

    System Designsubscriptionspaymentsbillingstate-machines
  • System DesignHardModel answer
    Design a Multiplayer Game Ranking System

    Build a backend that tracks player scores, displays global and friend rankings, shows a player's position with nearby competitors, and supports multiple time periods.

    System Designleaderboardhigh-throughputcachingreal-time
  • System DesignHardModel answer
    Design a real-time group messaging platform

    Design a scalable chat platform with channels and DMs supporting millions of users, sub-200ms delivery, message ordering, presence, and cross-device history sync.

    System Designreal-time-messagingwebsocketsscalabilitypub-sub
  • System DesignMediumModel answer
    Fault-Tolerant Selenium Text Scraper for Dynamic Pages

    Write a Python function that waits for two CSS-selected elements to become visible on a JS-rendered page and returns their text, with None for any that time out.

    System Designseleniumbrowser-automationexplicit-waitspython
  • System DesignHardModel answer
    Designing an Order-Routing Platform Over Async Exchange APIs

    Design a crypto order-routing service that fronts unreliable third-party exchange APIs with async fills, exactly-once effects, spiky load, and a durable ledger.

    System Designsystem-designdistributed-systemsidempotencystate-machine
  • System DesignMediumModel answer
    Design an AI Feature for a Ride-Sharing Platform

    Pick a rider or driver pain point, propose an AI-powered solution, and define how you'd measure whether it actually works.

    System Designproduct designAI/MLmarketplacemetrics
  • System DesignHardModel answer
    Design a Timeline-Anchored Live Reaction Stream

    Design a system that attaches viewer comments to specific moments on a video timeline, staying synchronized across live watching, replay, seeking, and reconnection.

    System Designreal-timestreamingdistributed-systemsfanout
  • System DesignMediumModel answer
    Design a 1:1 Chat System for a Buyer-Seller Marketplace

    Design a real-time direct messaging platform supporting message ordering, delivery receipts, offline notifications, and multi-device sync at marketplace scale.

    System Designwebsocketsmessagingdistributed-systemsreal-time
  • System DesignHardModel answer
    Designing a Data Integrity System for Multi-Store Order Data

    Design a validation and reconciliation pipeline that enforces order-book correctness across a set of loosely coupled databases with different freshness guarantees.

    System Designfinancial systemsdata validationreconciliationevent-driven
  • System DesignHardModel answer
    Estimating Document Read Time in a Collaborative Writing Tool

    Design a read-time estimation feature for a cloud document editor: model, validation strategy, system architecture, and success metrics.

    System Designproduct-designestimationmachine-learningmetrics
  • System DesignMediumModel answer
    Mutex Mechanics and Safe Shared State Access in C++

    Explain how a C++ mutex enforces exclusive access, how locking works under contention, and how to correctly guard a multi-threaded shared counter.

    System Designconcurrencycppthreading
  • System DesignHardModel answer
    Real-Time Event Tracking with Rolling Window Aggregations

    Design a high-throughput pipeline that ingests behavioral events, deduplicates them, and serves accurate activity counts over 1-minute, 1-hour, and 24-hour sliding windows.

    System Designstreamingtime-seriesaggregationdeduplication
  • System DesignHardModel answer
    Design a Real-Time Collaborative Document Editing Service

    Design the backend for a multi-user document editor supporting concurrent edits, offline sync, conflict resolution, history, and per-note scaling.

    System Designreal-timecollaborationwebsocketscrdt
  • System DesignHardModel answer
    Semantic Cache with Deduplication Under Concurrent Load

    Build a cache that recognizes semantically equivalent inputs, avoids redundant expensive computation when similar requests arrive concurrently, and keeps outputs consistent.

    System Designcachingconcurrencyembeddingsdistributed-systems
  • System DesignHardModel answer
    Design a Real-Time Streaming VWAP Computation Service

    Design a sub-5ms latency pipeline that ingests multi-exchange trade ticks, maintains running VWAP aggregates with correction support, and fans out to tens of thousands of subscribers.

    System Designstreamingfinancial-datalow-latencypub-sub
  • System DesignMediumModel answer
    C++ Memory Semantics, Dynamic Dispatch, and Override Pitfalls

    Explain pointers vs references, vtable-based dispatch internals, and the override specifier, then diagnose three bugs in a polymorphic sensor class hierarchy.

    System Designc++polymorphismmemory-management
  • System DesignHardModel answer
    Build a Reusable Thread Rendezvous Point from First Principles

    Implement a cyclic barrier from a mutex and condition variables where N threads block until all arrive, then release together and reset for the next round.

    System Designconcurrencysynchronizationthreadingmutex
  • System DesignHardModel answer
    Design a Query-Driven Feed Ranking System with Ad Insertion

    Design a low-latency pipeline that blends organic search results with sponsored content, balancing user engagement and revenue at 50k QPS.

    System Designrankingadssearchmulti-stage-funnel
  • System DesignHardModel answer
    Windowed Aggregation Pipeline for Calendar Event Logs

    Design a Spark/MapReduce pipeline that computes rolling 15-minute concurrent meeting counts and room utilization from a large-scale event log.

    System Designbig-datasparkmapreducewindowed-aggregation
  • System DesignHardModel answer
    Design a Governed AI Agent for Automated Trade Execution

    Design a safety-first, ML-driven order generation system with deterministic validation gates, idempotent execution, and a fully replayable audit trail.

    System Designagentic-systemsfinancial-infrastructurerisk-managementaudit-logging
  • System DesignHardModel answer
    Year-Long Ad Click Aggregation with External Logging Integration

    Design an aggregator that answers queries over a rolling one-year window of ad clicks, ingesting from an existing logging API rather than a real-time stream.

    System Designaggregationdata-pipelinestimeseriesdeduplication
  • System DesignMediumModel answer
    Taming Flaky Regressions and Sharpening Failure Classification

    Design an acceptance strategy for non-deterministic test output, then build a classification scheme that goes beyond pass/fail to drive precise triage.

    System DesignQAregression testingtest reliabilitydefect triage