KatInterview

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

Interview Practice Problems

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

5993
Problems
2220
Auto-graded
15
Topics
270
Added today

Showing 3331–3360 of 3773 results

  • System DesignMediumModel answer
    Build a GPU-Based Model Serving System

    Design a service that exposes a trained ML model over an API, routes requests to GPU workers, and maximizes hardware utilization.

    System Designmachine-learningdistributed-systemsapi-design
  • System DesignMediumModel answer
    Building a Transaction Dispute Resolution System

    Design a backend system to manage the complete lifecycle of payment disputes in an e-commerce marketplace, including evidence handling, deadline management, and financial settlements.

    System Designdistributed-systemsfinancial-systemsstate-machinesconsistency
  • BehavioralMediumModel answer
    Ownership, Collaboration, and Leading a Project End-to-End

    Three senior behavioral prompts testing accountability beyond your role, lifting teammates, and leading a real project through deep-dive follow-up questions.

    Behavioralownershipcollaborationleadershipsenior-engineer
  • SQL & DataMediumModel answer
    Detect and Remove Daily Revenue Outliers by Product

    Build a pandas pipeline that aggregates raw sales records, flags per-product outliers using IQR or Z-score, then plots the distribution before and after cleaning.

    SQL & Datapandasoutlier-detectiondata-cleaningmatplotlib
  • Dynamic ProgrammingHardModel answer
    Balance Mixed Bracket Types with Minimum Deletions

    Delete the fewest bracket characters to make all remaining brackets properly matched and nested, keeping all non-bracket characters intact.

    Dynamic Programmingdynamic-programmingstringsinterval-dp
  • Data Structure DesignMediumModel answer
    Build a Flexible Tennis Game Score Tracker

    Create a scoring system for a single tennis game that records points, displays readable scores, detects game completion, and supports multiple rule variants.

    Data Structure Designobject-oriented-designstrategy-patternstate-management
  • Data Structure DesignMediumModel answer
    Lottery Bucket with Constant-Time Operations and Duplicates

    Build a data structure supporting O(1) add, remove, and uniform random selection where duplicate entries are treated as separate items.

    Data Structure Designhash-tablearrayrandomizationduplicates
  • System DesignMediumModel answer
    Build a Pipeline to Ingest and Process Video Conference Recordings

    Design a system that automatically captures video conference recordings from a third-party platform, transforms them into transcripts and analytics, and serves results reliably at scale.

    System Designdistributed-systemsdata-pipelinerate-limitingidempotency
  • SQL & DataMediumModel answer
    Event Stream Analytics: Sessions, Funnels, and Segment Performance

    Process user activity logs to build sessions, compute conversion metrics by segment, construct a deduplicated funnel, and identify high-performing segments with confidence intervals.

    SQL & Datapandasdata-analysissessionizationmetrics
  • Machine LearningMediumModel answer
    ML Opportunities in a Task Fulfillment Platform

    Design ML systems for a platform where customers create tasks and workers complete them with proof: identify opportunities across the workflow and detail the most impactful.

    Machine Learningml-system-designprioritizationevaluationrisk-mitigation
  • Machine LearningHardModel answer
    Diagnosing and Fixing Stalled Optimization in Deep Networks

    Identify why gradient descent halts at high loss and apply targeted fixes for saddles, poor conditioning, vanishing gradients, or true minima.

    Machine Learningoptimizationdeep-learningdebugginggradient-descent
  • System DesignHardModel answer
    Design a High-Throughput Event Aggregation System

    Build a distributed system for counting events by user, device, and region with real-time aggregation, deduplication, and time-windowed queries.

    System Designdistributed-systemsstream-processingscalabilitydata-aggregation
  • Statistics & ExperimentsMediumModel answer
    Measuring Success of a Quick-Reply Feature in Messaging

    Design metrics and an experiment to evaluate a suggestion-based reply feature that offers users one-tap responses in chat conversations.

    Statistics & Experimentsexperimentationmetricsproduct-analytics
  • Statistics & ExperimentsMediumModel answer
    Interpret a Confidence Interval for a New Feature's Retention Lift

    Given a 95% CI for a retention lift from an A/B test, decide whether the result is actionable and explain what the interval does and does not tell you.

    Statistics & Experimentsstatisticsconfidence intervalsA/B testinginference
  • BehavioralMediumModel answer
    Managing Competing Priorities Under Heavy Workload

    Describe your framework for deciding what to work on when facing many simultaneous tasks, supported by a concrete example from your experience.

    Behavioralprioritizationtime-managementstakeholder-communicationtrade-offs
  • Machine LearningHardModel answer
    Bootstrapping a Labeled Dataset from Scratch

    Design a complete pipeline to generate high-quality labeled training data when starting with zero labels for a machine learning task.

    Machine Learningdata-collectionlabel-qualityweak-supervisionhuman-labeling
  • System DesignMediumModel answer
    Profiling and Optimizing GPU Workload Performance

    Identify bottlenecks in a GPU application using profiling tools, then select and validate a parallelization approach to improve end-to-end performance.

    System Designgpuperformanceprofilingparallelization
  • System DesignMediumModel answer
    Caching vs. Index Optimization for High-Traffic Services

    Evaluate when to add an in-memory cache versus tuning database indexes for a high-throughput service experiencing read latency spikes.

    System Designcachingdatabasesperformancearchitecture
  • Data Structure DesignMediumModel answer
    Hierarchical Task Tracker: OO Domain Model & Service Layer

    Design and implement an object-oriented model for a nested task manager with status propagation, recursive deletion, and attribute-based filtering.

    Data Structure Designobject-oriented designtree traversalAPI designcomposite pattern
  • Data Structure DesignMediumModel answer
    Dense-Index Data Structure Code Review

    Review a structure storing items under contiguous integer keys with O(1) random selection and removal while preserving index density.

    Data Structure Designcode-reviewdata-structuresrandomizationcomplexity-analysis
  • Data Structure DesignMediumModel answer
    Greedy Card Selection with Dynamic Deck State

    Simulate a threshold-based card selection strategy that accounts for a shrinking deck, tracking which cards remain available after each decision.

    Data Structure Designfenwick-treegreedysimulationbinary-indexed-tree
  • BehavioralMediumModel answer
    Demonstrating Influence, Values Alignment, and Resilience

    Prepare structured responses showing cross-functional influence, authentic value alignment, and recovery from project failures with concrete outcomes.

    Behavioralleadershipcommunicationproblem-solving
  • System DesignHardModel answer
    Design a Tag-Based Pub/Sub Message Broker

    Design a message queue where each message carries multiple topic tags and consumers receive only messages whose tags overlap their subscription set.

    System Designmessage-queuepub-subbitmasksystem-design
  • BehavioralEasyModel answer
    Walk Through a Technical Project You Led

    Describe a technical project you owned, covering problem framing, data work, methods, evaluation, deployment, impact, and lessons learned.

    Behavioralbehavioralproject-ownershipimpact
  • Statistics & ExperimentsMediumModel answer
    Designing an Experiment to Test a Mobile Search Bar Relocation

    Design a complete A/B test for relocating a search interface element in a mobile mapping application, including metrics, power analysis, and interpretation.

    Statistics & Experimentsa-b-testingexperimentationmetricscausal-inference
  • BehavioralEasyModel answer
    Taking Action Outside Your Lane Without Stepping on Toes

    Show how you spotted a problem beyond your role, took ownership without alienating the responsible team, and left an improvement that outlasted your involvement.

    Behavioralownershipinitiativecross-team collaborationstakeholder management
  • Statistics & ExperimentsMediumModel answer
    Designing Success Metrics for a New Feed Feature

    Define metrics, design an experiment, and evaluate trade-offs for launching a multi-image swipeable card feature in a social content platform.

    Statistics & Experimentsexperimentationmetricsproduct-analytics
  • System DesignMediumModel answer
    Design an Edge Device Management Feature for Enterprise IoT

    Design a new feature for enterprise teams managing large fleets of edge devices, covering target user, core problem, MVP scope, metrics, and risks.

    System Designproduct designIoTedge computingenterprise
  • Statistics & ExperimentsMediumModel answer
    Sealed Cash Box: Expected Value and Information Asymmetry

    Determine fair pricing for a sealed box containing random cash under various information conditions and competitive scenarios.

    Statistics & Experimentsexpected-valuegame-theoryadverse-selectiondecision-making
  • System DesignMediumModel answer
    Building a Digital Wallet Transfer Service

    Design a system that enables users to transfer funds between accounts with correct balances, handling failures, retries, and concurrent operations.

    System Designfinancial-systemsdistributed-systemstransactionsidempotency