KatInterview

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

Interview Practice Problems

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

6048
Problems
2239
Auto-graded
15
Topics
272
Added today

Showing 1351–1380 of 3809 results

  • System DesignMediumModel answer
    Lazy Pipelines, Memoization, Indexes, and Safe Payment Retries

    A multi-part fundamentals question covering lazy vs eager iteration, a multi-argument cache decorator, B+ tree index trade-offs, process vs thread, and testing idempotent retries.

    System Designpythongeneratorsmemoizationb-tree-index
  • Machine LearningMediumModel answer
    LLM Inference Memory and Phase Splitting: KV Cache and PD Disaggregation

    Explain why transformer decoders cache keys and values, size that cache for a given model, and reason about running prefill and decode on separate GPU pools.

    Machine Learningllm-servingkv-cacheinferencegpu-memory
  • SQL & DataMediumModel answer
    Row Removal, Saved Queries and Pairing Every Row in SQL

    Explain how DELETE and TRUNCATE differ, when a view beats a stored table, and how a CROSS JOIN builds full combination grids, using a small employee and department schema.

    SQL & Datasqldelete-vs-truncateviewscross-join
  • SQL & DataMediumModel answer
    Weekly Top Dialers and Share of French Video Participants

    Write two SQL queries on a call-log table: rank the ten users who placed the most calls in the past week, and compute the share of yesterday's French users who joined a video call.

    SQL & Datasqlaggregationdate-filteringconditional-aggregation
  • Arrays & HashingMediumModel answer
    Modern Java 8 Toolkit: Lambdas, Streams, Optional, java.time

    Explain the major Java 8 language and library additions, when each one fits, and the common pitfalls, using short code examples.

    Arrays & Hashingjavajava-8lambdasstreams
  • Machine LearningMediumModel answer
    Designing a Repeat-and-Aggregate Pipeline for Noisy LLM Scores

    Design a latency-bounded pipeline that averages repeated LLM sentiment scores, measures run-to-run stability, and computes how many samples a 95% error target needs.

    Machine Learningllm-inferenceconfidence-intervalssample-sizevariance-reduction
  • System DesignMediumModel answer
    Design Deterministic Parallel Floating-Point Reduction in CUDA

    Architect a GPU reduction pipeline that guarantees bitwise-reproducible floating-point outputs by eliminating non-deterministic thread block contention.

    System Designcudaparallel-programmingfloating-pointgpu
  • System DesignMediumModel answer
    Design a Scalable ML Model Weight Distribution System

    Design a robust, distributed infrastructure to distribute, version, and activate multi-gigabyte machine learning model weights across thousands of regional GPU inference instances safely.

    System Designmachine-learningsystem-designdistributed-systemscaching
  • Statistics & ExperimentsMediumModel answer
    Sizing and Reading a Discount-Offer Experiment

    Plan a randomized test for a customer discount offer: justify it, pick metrics, size the sample for a small revenue MDE, and explain a positive but non-significant lift.

    Statistics & Experimentsab-testingsample-sizepower-analysismde
  • System DesignMediumModel answer
    Build a Seller Photo Ingestion and Delivery Service

    Design a pipeline that accepts large seller photos by direct upload, processes and moderates them asynchronously, and serves only approved variants worldwide with safe concurrent edits.

    System Designsystem-designasync-processingobject-storageidempotency
  • Statistics & ExperimentsMediumModel answer
    Diagnosing Marketplace Bottlenecks: Supply vs. Demand Constraints

    A framework for identifying whether flat or declining category GMV in a marketplace is driven by supply shortages or reduced buyer demand, using metrics and experimentation.

    Statistics & ExperimentsA/B TestingMarketplace AnalyticsMetric DesignCausal Inference
  • Statistics & ExperimentsEasyModel answer
    Core Assumptions of OLS Linear Regression, Diagnostics, and Remediation

    Explain the underlying assumptions of ordinary least squares (OLS), their impact on bias versus inference, diagnostic techniques, and practical remedies.

    Statistics & Experimentslinear regressionstatisticshypothesis testingmachine learning
  • Dynamic ProgrammingHardModel answer
    Best Self-Matching Count After Removing Array Elements

    Delete any elements from an array so the most remaining values equal their new 1-based position. Reduce it to a longest-chain problem solved in O(n log n).

    Dynamic Programmingdynamic-programminglongest-increasing-subsequencebinary-searchsubsequence
  • System DesignMediumModel answer
    Reservation Notes Feature: Domain Model, Permissions, Bulk Edits

    Design the object model and system for free-text notes on a reservation, with owner and admin edit rights, change auditing, and a safe path for bulk admin updates.

    System Designobject-oriented-designaccess-controlaudit-logbatch-processing
  • Dynamic ProgrammingMediumModel answer
    Autonomous Drone Navigation in Dynamic Canyons

    Design a deterministic per-tick controller for a thruster-driven drone navigating procedurally generated obstacle canyons using lookahead simulation.

    Dynamic Programmingdynamic-programminglookahead-searchsimulationmemoization
  • Data Structure DesignHardModel answer
    Design a Time-Series Cloud Credit Ledger

    Design an in-memory cloud billing system supporting delayed cashback rebates, account consolidation, point-in-time historical balance queries, and spend leaderboards.

    Data Structure DesignData Structure DesignHeapUnion FindBinary Search
  • System DesignHardModel answer
    Designing a Distributed In-Memory Caching Tier

    Design a scalable, resilient distributed in-memory cache shared by backend services, covering memory management, partitioning, failover, and database protection.

    System Designsystem-designdistributed-systemscachingconsistent-hashing
  • Data Structure DesignMediumModel answer
    Build a Data-Fetching React Hook and Wire Up a Dashboard UI

    Write a React hook that fetches and reshapes API data with loading, error and refetch support, then connect a modal, a collapsible list and action buttons to component state.

    Data Structure DesignreacthooksuseEffectasync
  • Machine LearningHardModel answer
    Forecasting Hourly Rentals at a Single Bike-Share Dock Station

    Design an end-to-end model that forecasts hourly bike pickups at one docked station for the next 24 hours, covering target definition, features, models, and evaluation.

    Machine Learningtime-seriesforecastingcensored-datafeature-engineering
  • Machine LearningMediumModel answer
    Stress-Testing Your Own Published ML Paper Under Critique

    Prepare to present a paper you authored to a reviewer who has read it and will probe its experimental design, real-world usefulness, and how newer work changes its claims.

    Machine Learningresearch-paperexperimental-designself-critiqueablations
  • BehavioralEasyModel answer
    Handling Stakeholder Friction and Manager Evaluation Questions

    Learn how to frame stakeholder conflict stories effectively and navigate manager-rating calibration questions with self-awareness and professional transparency.

    Behavioralbehavioralstakeholder-managementleadershipconflict-resolution
  • Trees & GraphsHardModel answer
    Tree to String and Back: A Lossless Binary Tree Codec

    Build a pair of functions that flatten a binary tree of integers into a string and restore the identical tree from that string, with a clear format and a correctness argument.

    Trees & Graphsbinary-treeserializationpreorderstack
  • System DesignMediumModel answer
    Sub-50ms Payment Risk Scoring Service for Peak Traffic

    Architect an online scoring service that labels each card payment as approve, flag or block within 50 ms, handles 10k+ RPS and spikes, and ships new models with no downtime.

    System Designml-system-designlow-latencyfeature-storemodel-serving
  • BehavioralMediumModel answer
    Handling Urgent Ad-Hoc Analytics Requests Under Time Constraints

    Learn how to structure a behavioral interview response about managing high-stakes, ambiguous, and time-sensitive analytics requests using an enhanced STAR format.

    BehavioralBehavioralStakeholder ManagementPrioritizationData Quality
  • System DesignMediumModel answer
    Designing a Resilient Asynchronous Task Worker with Exponential Backoff and DLQ

    Architect a reliable queue consumer system featuring exponential backoff retries, dead-letter queues, idempotent execution, and crash recovery mechanisms.

    System Designsystem-designdistributed-systemsqueuesfault-tolerance
  • System DesignHardModel answer
    Designing a Multi-Modal Document & Asset Vector Search System

    Architect an end-to-end vector storage and retrieval engine for processing user documents, images, and videos, supporting multi-modal search under low-latency constraints.

    System Designsystem-designmachine-learningvector-searchmultimodal
  • Data Structure DesignMediumModel answer
    Design a Database Connection Pool

    Implement a resource-managing connection pool wrapper that enforces pool limits, reuses idle connections, and handles lease lifecycles safely.

    Data Structure Designdesign-dsobject-oriented-designresource-managementconcurrency
  • Machine LearningHardModel answer
    Designing a Scalable Audio Content Moderation Pipeline

    Architect an ML inference and labeling ecosystem for real-time speech moderation, covering cascading stages, calibration, metadata storage, and active learning loops.

    Machine Learningmachine-learningsystem-designaudio-processingactive-learning
  • System DesignMediumModel answer
    On-Call Playbook: Memory Alarm in a Card-Funding Service

    Walk through how you would triage, diagnose, mitigate, and follow up on a memory alert in a service that funds couriers' payment cards via a third-party provider and a Redis cache.

    System Designincident-responseobservabilitydebuggingredis
  • BehavioralHardModel answer
    Deep-Dive on a Major Project You Drove: Scope, Decisions, and Lessons

    Present a substantial engineering project end to end: constraints, your role, a key design trade-off, the toughest bug, how you verified results, and what you would change.

    Behavioralbehavioraltechnical-leadershipownershiparchitecture-tradeoffs