KatInterview

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

System Design Interview Problems

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

5986
Problems
2219
Auto-graded
15
Topics
271
Added today

Showing 841–870 of 1133 results

  • System DesignHardModel answer
    Design a Photo and Video Sharing Platform at Scale

    Architect a social media platform where users upload media, follow others, and get a ranked home feed — covering storage, delivery, feed generation, and scaling trade-offs.

    System Designfeed-generationcdnmedia-pipelinesharding
  • System DesignMediumModel answer
    Word and Phrase Lookup in a File Too Big to Load

    Design an API to find every line containing a word or exact phrase in a large line-oriented text file, comparing a streaming scan against a persistent inverted index.

    System Designinverted-indextext-searchstreamingtokenization
  • System DesignHardModel answer
    Design an End-to-End Loan Origination Platform

    Architect a durable, compliant loan origination system covering product selection, application intake, automated underwriting, third-party data pulls, decisioning, and disbursement.

    System Designsystem-designfintechworkflow-orchestrationdistributed-systems
  • System DesignMediumModel answer
    Digital Timing Analysis and Hardware Test Infrastructure

    Explain setup/hold timing constraints, clock skew effects, violation fixes, and hardware testability methods in digital chip design.

    System Designhardwaretiming-analysistestingdigital-design
  • System DesignHardModel answer
    Build a Fault-Tolerant Future Task Execution Engine

    Design a distributed scheduler that durably stores millions of delayed tasks and dispatches them within seconds of their due time, surviving crashes and partitions.

    System Designdistributed-systemsschedulingfault-tolerancedatabases
  • System DesignMediumModel answer
    Build a Scalable Task Execution System

    Design a fault-tolerant background task scheduler supporting one-time and recurring jobs with at-least-once guarantees at scale.

    System Designdistributed-systemsschedulingfault-tolerance
  • System DesignMediumModel answer
    Hotel Booking Platform: Fast Search, Oversell-Free Reservations

    Design a hotel search and reservation system that serves low-latency search from caches while guaranteeing strict, oversell-free transactional booking across multi-night stays.

    System Designsystem-designconsistencyidempotencycqrs
  • System DesignHardModel answer
    Design a High-Traffic Event Seat Reservation Platform

    Design a seat reservation system for sold-out events that handles millions of concurrent users without overselling, covering holds, payments, and real-time availability.

    System Designdistributed-systemsconcurrencypaymentscaching
  • System DesignMediumModel answer
    Scalable Multi-Dimensional Throttling for an Inference API

    Architect a distributed throttle service for an LLM API that enforces per-org request and token limits with sub-5ms latency at 200k RPS.

    System Designrate-limitingredisdistributed-systemshigh-throughput
  • System DesignHardModel answer
    Design a High-Throughput Product Catalog Sync Pipeline

    Architect an async ingestion system that handles billion-scale bulk feed files and real-time single-item edits, prioritizing price/stock updates over heavy image processing.

    System Designdistributed-systemsmessage-queuesdata-pipelines
  • System DesignMediumModel answer
    Spring Boot REST API: Controller Design with DTOs and Validation

    Build a Spring Boot controller for a banking resource with proper HTTP semantics, request validation, error handling, and tests.

    System Designspring-bootrest-apivalidationerror-handling
  • System DesignMediumModel answer
    Prevent Deadlock in Multi-Lock File Transfer

    Diagnose a deadlock in code that moves items between locked containers and implement fixes using lock ordering or try-lock strategies.

    System Designconcurrencydeadlocklockingmultithreading
  • System DesignMediumModel answer
    Event Ingestion Pipeline with Semi-Structured Payloads

    Design a fault-tolerant pipeline that ingests 50k heterogeneous JSON events per second and serves both per-user lookups and 90-day aggregate analytics.

    System Designdata-pipelineskafkaanalyticsschema-evolution
  • System DesignMediumModel answer
    Caching and Inventory Architecture for a Vacation Rental Platform

    Design a multi-tier caching system for a high-traffic rental marketplace that serves fast search results while guaranteeing zero double-bookings through authoritative holds.

    System Designcachingdistributed-systemsconsistencyinventory-management
  • System DesignMediumModel answer
    TCP Three-Way Handshake: Spot the Valid State Claim

    Identify the one correct statement about TCP connection-establishment state transitions and explain why the other three are wrong.

    System DesignnetworkingTCPstate-machine
  • System DesignMediumModel answer
    Design a Tree Storage Service with Descendant Lookup

    Design a REST API and backing storage model to persist a node hierarchy and efficiently retrieve all descendants of any node.

    System DesignREST APIdatabase schematreespagination
  • System DesignMediumModel answer
    Design a Recurring Task Scheduler with Pause and Resume

    Design a distributed service that registers one-time and cron-based tasks, dispatches them when due, and supports pausing and resuming schedules reliably.

    System Designschedulingdistributed-systemscronfault-tolerance
  • System DesignHardModel answer
    Streaming Analytics: Building a Live Product Popularity Service

    Design a distributed system that processes purchase event streams in real time and continuously exposes the most popular products across multiple time horizons.

    System Designstreamingdistributed-systemsanalyticsscalability
  • System DesignMediumModel answer
    Build a Cloud Storage System with Chunked Uploads and Permissions

    Architect a file-hosting platform separating content from metadata, supporting granular access rules and resumable multi-part uploads.

    System Designstoragedistributed-systemsapi-designupload
  • System DesignEasyModel answer
    Building a Foreground-Safe Stopwatch with Reliable UI Updates

    Design a small iOS stopwatch/SwiftUI app with a clear state machine, clock-derived elapsed time, main-thread updates, and sensible lifecycle handling.

    System Designiosswiftuistate-managementconcurrency
  • System DesignHardModel answer
    Write Path Internals: InnoDB, Cache Consistency, and TLS

    Trace a single HTTPS profile update through TLS negotiation, a Redis cache-aside layer, and InnoDB's WAL-based durability guarantees.

    System Designmysqlredistlsinnodb
  • System DesignHardModel answer
    Design a Multi-Source Data Reconciliation Pipeline

    Design and implement a pipeline that merges messy person records from several sources into canonical entries, handling normalization, matching, conflict resolution, and validation.

    System Designentity-resolutiondata-qualityrecord-linkagepipeline-design
  • System DesignMediumModel answer
    Design a Durable Multi-Threaded Append-Only Log Writer

    Design a thread-safe writer that lets thousands of threads durably append sub-1KB opaque records to one local file, with crash-safe framing and safe error handling.

    System Designconcurrencydurabilityfile-iobatching
  • System DesignMediumModel answer
    Unified Login Across Independently Hosted Domains Using OIDC

    Design a shared identity layer that lets users sign in once and move freely between two separate domains, then scale the same pattern to many sites and delegated API access.

    System Designauthenticationoauthoidcsso
  • System DesignHardModel answer
    Configurable N×N Tic-Tac-Toe in React with O(N) Win Detection

    Build a two-player, grid-size-configurable Tic-Tac-Toe React component with efficient win detection, prop reactivity, and full keyboard/screen-reader accessibility.

    System Designreacttypescriptaccessibilitystate-management
  • System DesignMediumModel answer
    Single-Elevator Control Policy for a Four-Stop Building

    Design the scheduling logic for one elevator serving a basement plus three floors, covering objectives, state, dispatch strategy, data structures, and simulation.

    System Designelevatorschedulingstate-machinesimulation
  • System DesignHardModel answer
    Shared Account Balance API: Preventing Double-Spend at Scale

    Design an API for a shared payment account that keeps the balance consistent when multiple users submit payments simultaneously, at high throughput.

    System Designconcurrencypaymentsdistributed-systemsidempotency
  • System DesignMediumModel answer
    Build a Fault-Tolerant Payment Execution Engine

    Implement a payout processor that guarantees exactly-once delivery against an unreliable ledger by persisting state and resolving ambiguous responses before retrying.

    System Designidempotencyfault-tolerancedistributed-systemsstate-machines
  • System DesignHardModel answer
    Build an in-memory rate limiter using token buckets

    Design a fast, memory-efficient rate limiter for an API that tracks per-client quotas using a token-bucket algorithm with lazy refill.

    System Designrate-limitingscalabilityalgorithmsconcurrency
  • System DesignMediumModel answer
    Build a Reference-Counted Smart Pointer in C++

    Design a shared-ownership pointer class: explain the control block, copy/move semantics, destruction invariants, and the boundaries of reference counting.

    System Designc++memory-managementsmart-pointersownership