KatInterview

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

Interview Practice Problems

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

6020
Problems
2229
Auto-graded
15
Topics
274
Added today

Showing 5071–5100 of 6020 results

  • System DesignMediumModel answer
    Bootstrap a Reproducible Python Environment for an LLM Project

    Walk through pinning a Python interpreter, isolating dependencies with a lockfile, securing API credentials, and verifying the setup with a live smoke test.

    System Designpythondev-environmentllmdependency-management
  • Data Structure DesignMediumAuto-graded
    Circular Buffer with Fixed Capacity

    Tests implementation of a bounded FIFO queue using circular array indexing with constant-time operations.

    Data Structure Designqueuecircular-bufferarraydata-structure-design
  • Data Structure DesignEasyAuto-graded
    Execute Turn-Based Movement Commands on a Line

    Tests state tracking and rule validation for alternating player moves on a bounded one-dimensional board.

    Data Structure Designsimulationstate-machinevalidation
  • Machine LearningMediumModel answer
    Handle Class Imbalance in Fraud Detection

    Design and evaluate an ML pipeline for detecting rare fraudulent transactions, navigating class imbalance at every stage from data to deployment.

    Machine Learningmachine learningclass imbalancefraud detectionevaluation metrics
  • BehavioralHardModel answer
    Resource Management and Frontend Performance Engineering

    Explain Python's resource cleanup patterns, React's rendering model and optimization strategies, and how to debug slow frontend performance in production.

    Behavioralpythonreactperformancedebugging
  • System DesignMediumModel answer
    Build a Distributed API Rate Limiter with Per-User Quotas

    Design a low-latency distributed rate limiter that enforces different token budgets for different users across a fleet of stateless API gateway nodes.

    System Designrate-limitingdistributed-systemscachingredis
  • Data Structure DesignMediumModel answer
    Firewall Rule Engine with Prefix Matching

    Build a rule-based IP filter supporting CIDR blocks, priority resolution, and efficient queries for single IPs and prefix ranges.

    Data Structure Designtrienetworkingbit-manipulation
  • System DesignMediumModel answer
    Harden a Two-Step Charge-and-Record Payment Flow

    Diagnose every failure mode in a naive charge-then-write endpoint, then redesign it to survive crashes, timeouts, retries, and concurrent duplicates.

    System Designidempotencydistributed-systemspaymentsfault-tolerance
  • Trees & GraphsMediumAuto-graded
    Network Unification Timestamp

    Tests Union-Find data structure application to track dynamic graph connectivity and determine when all nodes merge into one component.

    Trees & Graphsunion-finddisjoint-setgraph-connectivity
  • System DesignHardModel answer
    Build a Request Batching System for LLM Serving

    Design an inference service that groups incoming LLM requests into batches, assuming 100ms processing per batch, with attention to queueing, routing, and failure modes.

    System Designbatchinginferencelatencythroughput
  • System DesignMediumModel answer
    Building a High-Throughput Distributed Rate Limiter

    Design a multi-region rate limiting system that handles millions of requests per second with low latency while managing hot keys and partition failures.

    System Designdistributed-systemsrate-limitingcachingscalability
  • System DesignHardModel answer
    Design a Prompt Editor with Versioning and Collaboration

    Build a web app for writing, executing, and versioning LLM prompts with efficient storage for large documents and incremental edits.

    System Designdatabase-schemaversioningobject-storagecollaboration
  • Statistics & ExperimentsMediumModel answer
    Diagnosing a Spike in Harassment Policy Violations

    A monthly moderation report shows harassment violations rising sharply — determine whether the surge is real or a measurement artifact, then design and evaluate a mitigation.

    Statistics & Experimentscontent-moderationcausal-inferenceexperiment-designclassifier-evaluation
  • Statistics & ExperimentsMediumModel answer
    Online experiment plan for a new ad ranking model

    Design an A/B test to evaluate whether a new ad recommendation model should replace the production system, covering experimental setup, metrics, and launch criteria.

    Statistics & Experimentsab-testingexperimentationcausal-inferenceads
  • Machine LearningHardModel answer
    Predict Property Sale Prices from Multi-Year Transaction Records

    Design an end-to-end supervised ML pipeline to estimate residential sale prices from historical transaction data, including market shocks and missing values.

    Machine Learningregressionfeature-engineeringtime-series-validationdrift-detection
  • BehavioralMediumModel answer
    Building Your PM Internship Behavioral Narrative

    Structure a coherent story for PM internship interviews covering your background, motivation, project work, and collaboration style.

    Behavioralproduct-managementbehavioralcareer-transitionstorytelling
  • Arrays & HashingMediumAuto-graded
    Binary Classifier Threshold & Cost Trade-off Calculator

    Tests whether candidates can compute F1, confusion matrix counts, and deployment cost for two classifier configurations, then select the cheaper model to deploy.

    Arrays & Hashingmachine-learningclassificationevaluation-metrics
  • System DesignMediumModel answer
    Design a High-Throughput Telemetry Collection Platform

    Build a system to aggregate and store operational telemetry from a large distributed fleet, supporting real-time writes and historical analytics.

    System Designtime-seriesdistributed-systemsstreamingstorage
  • Trees & GraphsHardAuto-graded
    Minimum Steps to Collect All Keys in a Grid Maze

    Tests BFS shortest path on a grid where state must encode both position and the set of collected keys, requiring multi-dimensional state space exploration.

    Trees & Graphsgraphsbfsgridbitmask
  • BehavioralMediumModel answer
    Connecting Career Choices to a Customer-Facing Engineering Role

    Articulate your career trajectory and explain why you're pursuing a customer engineer position at a smaller organization.

    Behavioralcareer-developmentinterviewingself-reflection
  • Machine LearningMediumModel answer
    NER for E-Commerce Text: Design, Models, and Evaluation

    Design a named entity recognition system for short e-commerce text, covering task framing, model families, data pipeline, and the right metrics.

    Machine LearningNERsequence labelingtransformerse-commerce ML
  • BehavioralMediumModel answer
    Drive a Cross-Team Performance Fix When Root Cause Is Disputed

    Describe how you diagnosed a multi-service latency problem, navigated technical disagreement with a partner team, and confirmed the fix worked end-to-end.

    Behavioralcollaborationperformancedistributed-systemsinfluence
  • Math & Bit ManipulationMediumModel answer
    Infer Numeric Pattern and Identify Corrupted Element

    Determine which mathematical pattern a sequence follows, detect if one value is wrong, and predict the next term.

    Math & Bit Manipulationsequencespattern-recognitionedge-cases
  • BehavioralMediumModel answer
    Virtual Machines and Concurrency Fundamentals

    Explain VM architecture, hypervisor types, resource virtualization trade-offs, and concurrency primitives including threads, locks, and debugging approaches.

    Behavioralvirtualizationconcurrencyoperating-systems
  • System DesignMediumModel answer
    Real-time A/B test monitor with late arrival tolerance

    Build a stream processor that detects traffic imbalances across experiment variants in real time, handling duplicate events and delayed data.

    System Designstreamingexperimentationstatisticsstate-management
  • BehavioralMediumModel answer
    Walk Me Through a Project Where Data Was the Hard Part

    Describe a complex data project end-to-end: your role, the dataset, the technical decisions you made, and the measurable outcomes you delivered.

    Behavioralbehavioraldata engineeringownershiptrade-offs
  • System DesignMediumModel answer
    Sync Data from a Rate-Limited External API (3 req/s)

    Design a distributed service that ingests and keeps data fresh from a third-party API capped at exactly 3 requests per second.

    System Designrate-limitingdistributed-systemsdata-pipelinebackoff
  • Statistics & ExperimentsHardModel answer
    Geo Rollout Analysis: DiD, Segmented Regression & Power

    Design a full causal analysis for a two-state feature launch — compute DiD estimates, build a segmented time-series model, set guardrails, and size the experiment.

    Statistics & Experimentsdifference-in-differencescausal-inferenceexperimentationgeo-experiment
  • Math & Bit ManipulationMediumAuto-graded
    Parse Mixed-Endian Binary Protocol Fields

    Tests byte-level manipulation to extract little-endian and big-endian integers from a raw byte buffer without relying on architecture-specific memory layout.

    Math & Bit Manipulationbit-manipulationbytesendianness
  • BehavioralMediumModel answer
    Demonstrating Impact in Analytics Roles with Strategic Trade-offs

    Articulate concrete examples of decisions you drove, business metrics you influenced, and how your skill set matches a strategy-focused position.

    Behavioralbehavioralcareer-narrativestakeholder-management