KatInterview

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

Interview Practice Problems

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

6008
Problems
2226
Auto-graded
15
Topics
273
Added today

Showing 691–720 of 3782 results

  • Data Structure DesignMediumModel answer
    Build an In-Memory Price History Store with One-Shot Updates

    Design a per-symbol price store supporting lookups, custom change formulas, atomic range updates that can touch each slot only once, and a switch from daily to hourly data.

    Data Structure Designdata-structure-designtime-seriesatomic-updateshash-map
  • System DesignEasyModel answer
    Pinpointing a Storage Bottleneck on a Slow Production Host

    Walk through how to confirm whether disk I/O is slowing a service, find which process drives it, characterize the workload, and propose measured fixes.

    System Designlinuxperformanceiostatstorage
  • Statistics & ExperimentsHardModel answer
    Plan a Checkout Experiment with Safety Metrics and Pre-Set Rules

    Design a controlled experiment for a redesigned checkout flow: hypothesis, sample size, randomization, non-inferiority guardrails, a frozen analysis plan, and multiplicity control.

    Statistics & Experimentsab-testingexperiment-designpower-analysisguardrail-metrics
  • System DesignMediumModel answer
    Permission-Aware Q&A Assistant over Issue Tracker and Wiki

    Design an MVP retrieval-augmented assistant that answers employee questions across a ticketing system and a wiki, with citations, per-user access control, and fresh data.

    System Designragretrievalaccess-controlhybrid-search
  • System DesignMediumModel answer
    Designing a Safe Release and Reliability Plan for a Fleet Event Pipeline

    Design an end-to-end reliability plan for an event-ingestion service: guarded dependency calls, SLO-based alerting, reversible schema changes, and a canary pipeline with automatic rollback.

    System Designcircuit-breakerslocanary-deploymentschema-migration
  • System DesignMediumModel answer
    Building a Scalable Short-Link Service from Scratch

    Design a service that maps long web addresses to compact codes and serves redirects at very high read volume, covering API, storage, code generation and caching.

    System Designsystem-designurl-shortenercachingkey-generation
  • System DesignHardModel answer
    Design a Scalable IAM Platform for Users and Services

    Design a multi-tenant Identity and Access Management system with SPIFFE-style workload attestation, dynamic RBAC/ABAC policy evaluation, local enforcement, and tamper-evident auditing.

    System Designsystem-designsecurityiamdistributed-systems
  • System DesignEasyModel answer
    Secure S3 Upload Patterns and TypeScript Structural Typing

    Architect secure, direct S3 uploads via pre-signed URLs/IAM and analyze TypeScript structural typing alongside React useEffect async cleanup.

    System DesignAWSS3IAMTypeScript
  • System DesignHardModel answer
    Troubleshooting a Distributed Cache Degradation Incident

    Walk through an end-to-end incident response plan for high cache misses and service latency, covering triage, observability, hypothesis testing, mitigations, and post-incident RCA.

    System Designcachingincident-responsedistributed-systemsobservability
  • BehavioralMediumModel answer
    Leading a Quiet, Vague Analytics Interview Without Losing Rigor

    Explain how you would take charge of a 45-minute analytics case with silent interviewers and a fuzzy prompt: agree on a goal and metric, record assumptions, and deliver a defensible conclusion.

    Behavioralstakeholder-managementmetric-designambiguitycommunication
  • System DesignMediumModel answer
    Design a Secure User Registration and Authentication Service

    Architect an in-house email/password signup and login system emphasizing secure password storage, API contract design, session state management, and edge-case handling.

    System Designauthenticationsecurityapi-designdatabase-design
  • System DesignMediumModel answer
    Build a Tenant-Isolated Platform for Selling and Streaming Courses

    Design a SaaS learning platform where organizations run separate course catalogs, learners buy access via an external payment provider, and prerequisite rules gate enrollment.

    System Designsystem-designmulti-tenancypaymentsidempotency
  • Statistics & ExperimentsHardModel answer
    Design Flexible Profile Expression for a Swipe-Based Dating App

    Design a profile-personalization feature for a swipe-based dating app that works for both Millennial and Gen Z users, then plan the research, launch, metrics and feedback loops.

    Statistics & Experimentsproduct-senseexperiment-designmarketplaceuser-research
  • Data Structure DesignMediumModel answer
    Binary Wire Format for a Nested Key-Value Map

    Design and implement a versioned, checksummed binary format that converts a nested key-value map to bytes and back, and compare it with JSON and MessagePack.

    Data Structure Designserializationbinary-formatchecksumversioning
  • System DesignHardModel answer
    Design a Real-Time Ride-Matching Platform and a Price-Alert Service

    Architect two scalable backend platforms: a low-latency, geo-partitioned ride-hailing system and an asynchronous, queue-decoupled price tracking and notification pipeline.

    System Designsystem-designdistributed-systemsgeospatialevent-driven
  • System DesignMediumModel answer
    Walk Through and Justify a System You Built From Scratch

    Open-ended round: describe a significant system you personally owned, then justify its design, technology choices and hardest problems while an interviewer questions each decision.

    System Designproject-deep-divearchitecturetrade-offsownership
  • BehavioralMediumModel answer
    Behavioral Round: Project Ownership, Cross-Team Incidents, Difficult Peers

    Prepare structured answers on a recent project, a hard technical problem, a cross-team incident from both sides, and working with a challenging colleague.

    Behavioralbehavioralleadershipconflict-resolutionstakeholder-management
  • Data Structure DesignHardModel answer
    Design an In-Memory Sentence Search Index

    Design a data structure that supports adding, removing, and efficiently querying sentences by keyword in real time.

    Data Structure DesignData Structure DesignInverted IndexStringHash Table
  • System DesignMediumModel answer
    Strategy Review of a Four-Sided Short-Video Platform

    Analyze a short-video platform as a four-sided marketplace of viewers, creators, advertisers and merchants, then propose and defend a 12-month strategy with metrics and trade-offs.

    System Designproduct-strategyplatform-ecosystemmarketplacemetrics
  • Statistics & ExperimentsMediumModel answer
    Grouped Data Modeling: Random Intercepts, Slopes and Shrinkage

    Describe how a model with both population-level and group-level terms works, when to treat group labels as random versus fixed, how to read its outputs, and which problems to watch for.

    Statistics & Experimentsmixed-effectshierarchical-modelsshrinkageregression
  • BehavioralMediumModel answer
    Turning Hard Criticism Into Measurable Growth

    Walk through a time you got tough, work-relevant criticism, how you tested its validity, changed a specific habit, and showed with evidence that the change worked.

    Behavioralbehavioralfeedbackgrowth-mindsetself-awareness
  • BehavioralMediumModel answer
    Owning a Failing Model Under Deadline Pressure and Disagreement

    Behavioral prompt: you inherit a declining metric or model, disagree with the team's fix, and must make a time-boxed recommendation while managing risk, stakeholders, and accountability.

    Behavioralbehavioralleadershipinfluencerisk-management
  • System DesignMediumModel answer
    Token Budgeting and Context Assembly for a Document-Analysis LLM

    Design a middleware that packs prompt, history, retrieved passages and tool results into a 32k-token window with prioritization, citations, injection isolation and fallbacks.

    System Designllmragcontext-windowprompt-injection
  • BehavioralMediumModel answer
    Four Behavioral Stories on Ownership, Failure and Shifting Priorities

    Prepare structured stories on exceeding expectations, a real failure, juggling competing requests, and adapting to shifting requirements, showing ownership and sound prioritization.

    Behavioralbehavioralleadershipprioritizationstar-method
  • System DesignMediumModel answer
    Python Deep Dive: Runtime Mechanics, Generators, Concurrency, and Contexts

    Analyze Python runtime behaviors including mutable defaults, generator execution and cleanup, GIL-bound concurrency choices, and custom context manager protocols.

    System Designpythonconcurrencymemory-managementruntime-mechanics
  • Statistics & ExperimentsMediumModel answer
    Stress-Testing a Debit Card Spare-Change Savings Launch

    Audit a spare-change savings proposal: find the riskiest behavioral and statistical assumptions, design cheap validation tests, and plan guardrails for side effects.

    Statistics & Experimentsexperimentationproduct-analyticsab-testingcausal-inference
  • System DesignMediumModel answer
    Build a Multi-Tenant Task Tracker API at Scale

    Design a backend for a personal task manager serving millions, covering API contracts and versioning, tenant isolation, per-user throttling, caching, and data partitioning.

    System Designsystem-designrest-apirate-limitingcaching
  • Statistics & ExperimentsMediumModel answer
    Testing a Courier-Priority Elevator Rule in Apartment Towers

    Design an experiment to test whether dedicating one elevator to couriers at peak hours speeds up deliveries without hurting residents, covering randomization, metrics, and interference.

    Statistics & Experimentsab-testingexperiment-designcluster-randomizationswitchback
  • System DesignMediumModel answer
    Reservation Service Design: REST Endpoints, Schema, Date Inventory

    Design a REST API and database schema for booking a stay or rental, compare per-day and interval inventory models, and support extending an existing reservation.

    System Designrest-apischema-designinventory-modelingconcurrency
  • Statistics & ExperimentsMediumModel answer
    Pooling Two Sensors and Correlation in a Lattice Walk

    Find the minimum-variance linear unbiased way to pool readings from two sensors, then compute the correlation of coordinates, and of their absolute values, for a walk on the square lattice.

    Statistics & ExperimentsestimationBLUEinverse-variance weightingrandom walk