KatInterview

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

Interview Practice Problems

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

6094
Problems
2258
Auto-graded
15
Topics
271
Added today

Showing 3781–3810 of 6094 results

  • System DesignHardModel answer
    Build a Minimal HTTP/1.1 Server from Scratch

    Implement a bare-metal HTTP server using only the standard library: request parsing, routing, static files, concurrency, timeouts, and graceful shutdown.

    System Designnetworkinghttpconcurrencysystem-design
  • System DesignMediumModel answer
    Designing a Bounded-Memory Sliding-Window Top-K Stream Ranker

    Design a memory-bounded structure that ranks the most frequent events over a sliding time window under millions of events per second, covering windowing, sketches, ties, and complexity.

    System Designstreamingapproximate-algorithmscount-min-sketchsliding-window
  • Trees & GraphsMediumAuto-graded
    Root-to-Leaf Path Metrics on a Weighted Tree

    Tests whether a candidate can traverse an unordered weighted tree in linear time to extract the root, the heaviest root-to-leaf path weight, and the maximum depth.

    Trees & Graphstrees-graphshash-mapiterative-dfs
  • System DesignHardModel answer
    Design a Real-Time News Aggregation Platform

    Design a scalable news aggregation system covering ingestion, deduplication, clustering, personalized feed serving, and operational concerns at global scale.

    System Designingestion pipelinefeed rankingdeduplicationdistributed systems
  • Arrays & HashingHardAuto-graded
    Estimating the Probability of a Dice Sum Exceeding a Target

    Apply the central limit theorem and continuity correction to approximate the tail probability of a sum of independent discrete random variables.

    Arrays & Hashingprobabilitycentral-limit-theoremnormal-approximationcontinuity-correction
  • Dynamic ProgrammingMediumAuto-graded
    Worst Equity Drop, Best Trade, and Fewest Coins

    Return a series' steepest peak-to-trough drop with its indices, the best one-buy-one-sell gain, and the minimum coin count for a target.

    Dynamic Programmingarraysdynamic-programminggreedysingle-pass
  • Machine LearningHardModel answer
    Build a Machine Learning Document Search Engine

    Design a production search system that combines keyword and semantic retrieval, enforces tenant-level access control, and ranks results with learned models.

    Machine Learningml-systemsinformation-retrievalrankingembeddings
  • System DesignHardModel answer
    Design a Financial Platform with Transfers and Analytics

    Architect a core banking platform covering auth, accounts, ATM flows, intra- and inter-bank transfers, and time-windowed transaction analytics.

    System Designdistributed-systemsconsistencypaymentsledger
  • Arrays & HashingMediumAuto-graded
    Evaluate Request Status from Rule Matches

    Tests rule-based decision logic with subset matching and outcome priority resolution when multiple rules apply simultaneously.

    Arrays & Hashingset-operationslogicprecedence
  • System DesignHardModel answer
    Front-End Design: Scalable Product Search with Unbounded Results

    Design the component tree and performance strategy for a search-driven product grid that must handle an arbitrarily large catalog.

    System Designfrontendsearchpaginationperformance
  • Statistics & ExperimentsHardModel answer
    Diagnosing and Quantifying Call-Drop Failures for a B2B Product

    Design a measurement framework to identify, deduplicate, and quantify the business impact of call disconnects, then make a defensible fix-vs-build prioritization decision.

    Statistics & Experimentsanalyticsexperimentationcausal-inferenceproduct-metrics
  • System DesignMediumModel answer
    Python Language Evolution and Runtime Internals

    Demonstrate working knowledge of Python 3.8–3.10 syntax additions, GUI and web framework trade-offs, and how CPython handles strings in memory.

    System Designpythonlanguage-fundamentalscpython-internalsecosystem
  • System DesignMediumModel answer
    Diagnose and Remediate a Runaway Process on Linux

    Given a degraded production host, use top, ps, find, and kill to identify a CPU-hungry process, handle files with hostile names, and terminate it safely.

    System Designlinuxcliprocess-managementdevops
  • BehavioralHardModel answer
    Influence, Learn Fast, and Navigate Stakeholder Conflict

    A three-part behavioral question testing influence without authority, rapid domain learning under time pressure, and data-driven conflict resolution with senior stakeholders.

    Behavioralconflict-resolutioninfluence-without-authoritylearning-agilitystakeholder-management
  • System DesignMediumModel answer
    Selecting a Database for High-Volume Activity Tracking

    Evaluate NoSQL versus relational storage for a log ingestion system with extreme write throughput and petabyte-scale growth.

    System Designdatabasesscalabilitydata-modelingnosql
  • System DesignMediumModel answer
    Pricing a New B2B SaaS Analytics Feature

    Walk through a structured B2B pricing framework covering customer segmentation, value-based vs. cost-plus methods, competitive benchmarking, packaging tiers, and validation experiments.

    System Designproduct-strategyb2b-pricingmonetization
  • BehavioralMediumModel answer
    Walk Me Through Your Work and How You Use AI Tools

    Structure a professional introduction, own a complex technical decision, and respond honestly to a question about where AI assistance ends and your judgment begins.

    Behavioralself-introductionproject deep-diveAI toolsaccountability
  • System DesignHardModel answer
    Design a Centralized Log Aggregation Platform

    Design a high-throughput internal logging platform that ingests, indexes, and retains logs from thousands of services with near-real-time search and strict tenant isolation.

    System Designloggingobservabilitydistributed-systemsstream-processing
  • System DesignMediumModel answer
    Design an Activity Recording and Social Feed Service

    Build a mobile service that captures GPS workouts offline, uploads them reliably, and powers a social feed of followers' activities.

    System Designmobile-firstoffline-syncsocial-feedgeospatial
  • Greedy & IntervalsMediumAuto-graded
    Fewest Points to Cover a Microdollar Threshold

    Tests greedy selection when items have uniform cost but different values under capacity constraints.

    Greedy & Intervalsgreedysortingmath
  • System DesignMediumModel answer
    GPU GEMM Speedup Limits and Tiled Memory Strategies

    Apply Amdahl's law to a partially accelerated simulation, then explain GPU tiled matmul and the cost of virtual dispatch.

    System Designamdahls-lawgpumatmulcuda
  • Data Structure DesignHardModel answer
    Versioned In-Memory Set with Snapshot Iterators and WAL Contracts

    Design an MVCC-backed mutable set with O(1) snapshot iterators and specify the durability, ordering, and crash-recovery contracts for a write-ahead log.

    Data Structure DesignMVCCsnapshot isolationWALdata structure design
  • SQL & DataMediumModel answer
    Auditing a Credit-Card Ledger: Validation Rules and Failing-Row Queries

    Design a layered set of data quality checks over transactions and vendors tables, with SQL for the failing rows.

    SQL & Datadata-qualitysqlvalidationreferential-integrity
  • Greedy & IntervalsMediumModel answer
    Assign Support Tickets to Agents Within Concurrency Limits

    Given a list of fixed-time support tickets, assign each to an agent while respecting per-client concurrency caps and an optional agent pool size.

    Greedy & Intervalsgreedyinterval-schedulingheapsweep-line
  • Heaps, Sorting & SearchMediumAuto-graded
    Collect minimum values with adjacent deletions

    Tests simulation using a priority queue with lazy deletion and a linked list to repeatedly remove the smallest remaining element and its current neighbors.

    Heaps, Sorting & Searchheaplinked-listsimulationlazy-deletion
  • Statistics & ExperimentsEasyModel answer
    p-Values, Regression Coefficients, and L1 vs L2 Penalties

    Rapid-fire statistics: define p-values correctly, interpret regression coefficients with confounders, and choose between Lasso and Ridge penalties.

    Statistics & Experimentsp-valueshypothesis-testinglinear-regressionconfounding
  • SQL & DataMediumModel answer
    Find the Meeting Slot That Conflicts With the Most Others

    Given a table of time-bounded sessions, write SQL to find which session overlaps the largest number of other sessions and report that count.

    SQL & Datasqlinterval-overlapself-joinwindow-functions
  • Data Structure DesignMediumAuto-graded
    Filter Stream Events by Registered Patterns

    Tests inverted index design and set-based matching to efficiently find which registered word patterns are satisfied by incoming events.

    Data Structure Designhash-tablessetsinverted-index
  • BehavioralMediumModel answer
    Driving a Cross-Team Technical Change Without Direct Authority

    Show how you built buy-in for a contested technical change across product, research, security, and infra teams, and what measurably changed afterward.

    Behavioralinfluencing-without-authoritycross-functionalconflict-resolutionstakeholder-management
  • Data Structure DesignMediumAuto-graded
    Frequency-Based Cache Eviction

    Build a cache that tracks access counts and evicts the least-used item, breaking ties by recency, all in constant time.

    Data Structure Designhash-mapdoubly-linked-listcachedesign