KatInterview

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

Interview Practice Problems

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

5978
Problems
2214
Auto-graded
15
Topics
272
Added today

Showing 3571–3600 of 3764 results

  • Machine LearningMediumModel answer
    Building a Ranking System for E-Commerce Search

    Design an ML system that orders products by relevance for marketplace search, covering objective definition, training data, features, model architecture, and evaluation.

    Machine Learningrankinge-commercemulti-task-learningposition-bias
  • Machine LearningMediumModel answer
    Designing a Revenue-Maximizing Donor Outreach Strategy

    Build a model to optimize fundraising campaigns by predicting donation likelihood and amounts, then create profit-driven policies for different outreach channels.

    Machine Learningpredictive-modelinguplift-modelingcalibrationcausal-inference
  • System DesignMediumModel answer
    Orchestrating a Durable Multi-Step Refund Process

    Design and implement a crash-resistant orchestrator that coordinates a refund across three HTTP services with idempotency, persistence, and retry logic.

    System Designdistributed-systemsidempotencystate-machinehttp
  • Data Structure DesignMediumModel answer
    Parallel Job Scheduler with Dependency Management

    Build a concurrent task executor that honors dependencies, enforces worker limits, and propagates failures through dependent jobs.

    Data Structure Designconcurrencygraphstopological-sort
  • Data Structure DesignMediumModel answer
    Frequency Tracking with Static and Streaming Top-K Retrieval

    Build data structures to identify the most frequent elements in three scenarios: a fixed array, an unbounded stream, and a time-windowed stream.

    Data Structure Designfrequency-countingheapssliding-windowstreaming-algorithms
  • Machine LearningHardModel answer
    Building a Misinformation Detection System

    Design an ML pipeline to identify misleading content on a social platform, covering feature engineering, modeling strategy, evaluation, and production concerns.

    Machine Learningclassificationfeature-engineeringproduction-mlevaluation-metrics
  • BehavioralMediumModel answer
    Articulating Career Direction and Past Decisions

    Explain what drives your career choices, why you made key educational and work decisions, and what you're looking for next in a cohesive narrative.

    Behavioralcareer-motivationself-awarenessstorytelling
  • Statistics & ExperimentsHardModel answer
    Testing a New Ad Recommendation System

    Design an A/B test to compare a new ad model against the current one, choose metrics for different stakeholders, and decide whether to launch.

    Statistics & Experimentsab-testingmetricsexperimentationads
  • BehavioralMediumModel answer
    Explaining a Design Decision Driven by Competing Constraints

    Discuss a technical decision where you balanced competing system requirements, detailing alternatives, rationale, and results.

    Behavioralleadershiptrade-offsdecision-making
  • StringsMediumModel answer
    Remove Paths by Prefix Hierarchy

    Remove all paths that match or fall under any deletion target in a hierarchical filesystem-like structure.

    Stringstrieprefix-matchingstring-processing
  • Data Structure DesignMediumModel answer
    In-Memory Payroll Tracker with Partial Settlement

    Build an object-oriented service to log driver work intervals, compute wages, and process payments while preventing double-pay and handling overlaps.

    Data Structure Designobject-oriented-designtime-intervalsmoney-arithmeticstate-management
  • System DesignHardModel answer
    Build a Global Video Platform with Resumable Upload and ABR Streaming

    Architect a scalable video platform supporting chunked uploads, distributed transcoding into adaptive bitrate formats, moderation workflows, and CDN-backed delivery.

    System Designvideo-streamingdistributed-systemscdnscalability
  • Machine LearningHardModel answer
    Building a Multi-Tenant RAG System for Secure Document Search

    Architect a question-answering pipeline over confidential documents with strict access controls, verifiable citations, version handling, and hallucination prevention.

    Machine Learningragmlopsinformation-retrievalsecurity
  • Machine LearningHardModel answer
    Design a Weekly User Activity Forecasting System

    Build an ML platform to forecast which users will remain active next week, supporting both batch predictions for millions of users and low-latency individual queries.

    Machine Learningml-system-designfeature-engineeringmodel-servingscalability
  • BehavioralMediumModel answer
    Driving Cross-Team Decisions as a Data Scientist

    Demonstrate how you lead outcomes across PM, engineering, and design when you control no roadmaps, handle tough feedback, and resolve conflicting stakeholder priorities.

    Behavioralleadershipinfluencecollaborationprioritization
  • Machine LearningHardModel answer
    Gradient Boosting Regularization and Fraud Detection Pipeline

    Design a complete gradient boosting pipeline for rare-event classification: explain the regularized objective, tune hyperparameters, and build a leakage-free validation strategy.

    Machine Learninggradient-boostingregularizationimbalanced-classificationmodel-validation
  • Statistics & ExperimentsMediumModel answer
    Measuring the Impact of In-Game Advertising

    Design an evaluation framework to assess whether introducing ad inventory improves monetization without harming player retention or lifetime value.

    Statistics & Experimentsexperimentationmetricscausal-inferenceproduct-analytics
  • Statistics & ExperimentsMediumModel answer
    Design an Experiment for a Marketplace Convenience Feature

    Plan and evaluate a controlled test for a new guest amenity in a two-sided platform, covering unit choice, metrics, power, and interference risks.

    Statistics & Experimentsexperimentationcausal-inferencemarketplacea-b-testing
  • System DesignMediumModel answer
    Building a Global Music Chart Aggregation System

    Design a scalable streaming pipeline that computes country-level song popularity rankings from millions of play events with 10-minute refresh cycles.

    System Designstreamingdata-pipelineaggregationscalability
  • BehavioralMediumModel answer
    Reflecting on a Flawed Technical Choice You Owned

    Discuss a technical decision you led that proved incorrect, covering discovery, impact, correction, and lasting process changes.

    Behavioralleadershipownershipjudgmentlearning
  • BehavioralMediumModel answer
    Closing a Critical Skill Gap Through Structured Practice

    Describe how you identified a meaningful weakness, built a deliberate improvement plan with measurable feedback, and adapted your approach when needed.

    Behavioralself-improvementfeedback-loopsprofessional-development
  • Trees & GraphsHardModel answer
    Navigate Between Nodes in a Recursively Defined Binary Tree

    Determine the path between two nodes in a Fibonacci-style binary tree using only their preorder indices, without building the tree in memory.

    Trees & Graphsbinary-treesrecursionfibonaccitree-traversal
  • Data Structure DesignMediumModel answer
    Building Robust Autocomplete Query Management

    Design and implement the query-handling layer for an autocomplete component with debouncing, retry logic, response ordering, and result caching.

    Data Structure Designasynccachingstate-management
  • Statistics & ExperimentsMediumModel answer
    Maximum Likelihood Estimation and Conditional Gaussian Distributions

    Derive maximum likelihood estimators for Gaussian parameters under various constraints, compute conditional distributions in bivariate Gaussians, and analyze estimator bias.

    Statistics & Experimentsmaximum-likelihoodgaussian-distributionconditional-probabilityestimator-bias
  • System DesignMediumModel answer
    Building a Fault-Tolerant Payment System with Zero Duplicates

    Design a payment platform that prevents duplicate charges through idempotency, handles gateway timeouts safely, and maintains financial correctness.

    System Designdistributed-systemspaymentsidempotencyconcurrency
  • Data Structure DesignMediumModel answer
    Concurrent In-Memory Cache with Sharded Locking

    Build a thread-safe in-memory cache supporting concurrent reads and writes, choosing data structures and synchronization primitives to minimize contention.

    Data Structure Designconcurrencythreadinglockingdata-structures
  • System DesignHardModel answer
    E-commerce Catalog Update System with Asynchronous Image Processing

    Design a scalable system for merchants to update product catalogs individually or in bulk, with image validation and CDN delivery.

    System Designdistributed-systemsasync-processingconcurrencyscalability
  • Data Structure DesignMediumModel answer
    C++ Implementation Details: Containers and Polymorphism

    Explain the internal mechanics of std::vector growth, std::unordered_map collision handling, and virtual function dispatch in C++.

    Data Structure Designc++data-structuresperformancememory
  • Statistics & ExperimentsMediumModel answer
    Why L1 Loss Produces the Median and L2 Loss Produces the Mean

    Explain why minimizing absolute deviations yields the median while minimizing squared deviations yields the mean, and how these principles extend to higher dimensions.

    Statistics & Experimentsloss-functionscentral-tendencyoptimizationoutliers
  • System DesignMediumModel answer
    High-Throughput Counter System for Social Engagement

    Design a counting service that supports millions of concurrent engagement actions with eventual consistency and sub-50ms read latency.

    System Designdistributed-systemseventual-consistencyhigh-throughputcaching