KatInterview

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

Machine Learning Interview Problems

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

5969
Problems
2211
Auto-graded
15
Topics
273
Added today

Showing 451–480 of 510 results

  • Machine LearningMediumModel answer
    Core Concepts in Machine Learning and Deep Learning

    Demonstrate understanding of fundamental ML/DL concepts through precise definitions, mathematical formulations, and practical examples.

    Machine Learningfundamentalsdeep-learningtheorymathematics
  • Machine LearningMediumModel answer
    Orchestrating Classification and Embedding Services at Scale

    Build a document processing pipeline that calls two ML services (classification and embedding) for both single-file and bulk uploads up to 1,000 files.

    Machine LearningML System DesignAPI DesignScalabilityService Orchestration
  • Machine LearningEasyModel answer
    Build a Collaborative Filtering Recommender for a Playlist App

    Design and evaluate a simple collaborative filtering system that recommends songs to users of a music playlist application.

    Machine Learningrecommendation systemscollaborative filteringmatrix factorizationevaluation metrics
  • Machine LearningHardModel answer
    Build a Production ML Training Pipeline for Time-Series Models

    Design a complete ML training system for forecasting, covering data handling, training infrastructure, serving, and monitoring with emphasis on temporal correctness.

    Machine Learningml-systemstime-seriesmlopstraining-infrastructure
  • Machine LearningHardModel answer
    Hourly Demand Forecasting for Shared Mobility Systems

    Build a model to forecast hourly demand at individual stations in a bike-sharing network, handling time-series structure, censored observations, and overfitting risks.

    Machine Learningtime-seriesfeature-engineeringoverfittingdemand-forecasting
  • Machine LearningMediumModel answer
    Build a Document-Grounded Q&A Assistant for One Domain

    Design an enterprise conversational system that answers questions from a curated knowledge base with citations, handles multi-turn dialogue, and escalates when uncertain.

    Machine Learningragnlpconversational-aiinformation-retrieval
  • Machine LearningHardModel answer
    Streaming ETA System with GPS Signal Processing

    Build a low-latency pipeline that continuously updates driver ETAs using only GPS pings and trip events, handling noisy location data and grid transitions.

    Machine Learningml-system-designstreaminggpsreal-time
  • Machine LearningMediumModel answer
    Validating Predictive Signals in Quantitative Finance

    Evaluate cross-sectional equity signals using correlation metrics, detect temporal data leakage, and design validation frameworks that prevent overfitting.

    Machine Learningquantitative-financetime-seriesvalidationoverfitting
  • Machine LearningHardModel answer
    Dimensionality Reduction: PCA vs Autoencoders in Sparse Data

    Contrast PCA and autoencoder approaches when features far outnumber samples, considering training stability, manifold complexity, and evaluation rigor.

    Machine Learningdimensionality-reductionpcaautoencoderscurse-of-dimensionality
  • Machine LearningHardModel answer
    Build an End-to-End User Purchase Prediction System

    Design a complete ML pipeline to predict which users will buy after receiving a promotional message, handling causality, cold starts, and production deployment.

    Machine Learningpropensity-modelingcausal-inferenceproduction-mlcalibration
  • Machine LearningHardModel answer
    Build a Return-Forecasting Pipeline with Sentiment and Price Signals

    Design an end-to-end ML system that predicts next-day stock returns from news sentiment and price data, covering features, model choice, backtesting, and drift monitoring.

    Machine Learningtime-seriesfeature-engineeringbacktestingconcept-drift
  • Machine LearningMediumModel answer
    Panel Data Cross-Validation with Temporal Embargo

    Design a time-series CV splitter for panel data that prevents entity leakage across train/test sets using an embargo period and supports geographic holdout folds.

    Machine Learningcross-validationtime-seriespanel-dataleakage-prevention
  • Machine LearningMediumModel answer
    Build a Multimodal Content Moderation Pipeline

    Design an ML system to classify and filter harmful user-generated content across text, images, and video at high throughput with strict latency constraints.

    Machine Learningml-system-designmultimodalcontent-moderationproduction-ml
  • Machine LearningHardModel answer
    Real-Time Transaction Fraud Scoring System

    Design a complete ML pipeline to classify payment fraud in under 100ms, addressing delayed labels, streaming features, class imbalance, and cost-aware decisions.

    Machine Learningfraud-detectionreal-time-mlimbalanced-classificationfeature-engineering
  • Machine LearningMediumModel answer
    Designing a Fair Real Estate Valuation System

    Design an ML pipeline to predict residential property values for mortgage lending, addressing bias, temporal validation, and regulatory requirements.

    Machine Learningfairnessregressionfeature-engineeringmodel-validation
  • Machine LearningHardModel answer
    Building a Binary Classifier for Clinical Risk Prediction

    Design and implement a complete machine learning pipeline to predict a binary medical outcome from tabular patient data.

    Machine Learningclassificationfeature-engineeringhealthcaremodel-evaluation
  • Machine LearningMediumModel answer
    PCA, Normalization, and Logistic Regression Fundamentals

    Explain dimensionality reduction, preprocessing choices, backpropagation mechanics, threshold tuning, and domain-constrained modeling in a classification context.

    Machine Learningdimensionality-reductionpreprocessingoptimizationclassification
  • Machine LearningHardModel answer
    Design and Analyze a Counterfactual Online Experiment for a Ranking Model

    Design an online experiment to measure the causal impact of a new ML ranking model, handling interference, novelty effects, and metric trade-offs at scale.

    Machine Learningmachine learningexperimentationrankingcausal inference
  • Machine LearningMediumModel answer
    URL Safety Classifier with Imbalanced Data

    Design and evaluate a classifier to identify malicious URLs given limited labeled examples and severe class imbalance.

    Machine Learningclassificationimbalanced-datafeature-engineeringmodel-evaluation
  • Machine LearningMediumModel answer
    Targeting Drivers for Real-Time Demand Spikes

    Build a system that selects which drivers to alert during sudden demand increases at high-traffic locations, balancing response speed with market stability.

    Machine Learningrankinguplift-modelingfeature-engineering
  • Machine LearningMediumModel answer
    Designing a Post-Purchase Email Recommendation System

    Design and validate an email recommendation feature that sends product suggestions after checkout, focusing on incremental profit and customer experience.

    Machine Learningrecommendation-systemsexperimentationproduct-metricscustomer-lifecycle
  • Machine LearningMediumModel answer
    Binary Classification Pipeline for Rare Events

    Design a complete ML pipeline for severely imbalanced classification, including temporal splitting, calibration, threshold selection, and drift monitoring.

    Machine Learningimbalanced-classificationcalibrationtemporal-validationpipeline-design
  • Machine LearningHardModel answer
    Build an ML System for Optimizing Short-Term Rental Prices

    Design a production machine learning system that suggests optimal nightly prices for vacation rental hosts based on demand forecasting and price elasticity.

    Machine Learningpricingdemand-forecastingreinforcement-learningcausal-inference
  • Machine LearningHardModel answer
    Safe deployment strategy for adaptive experimentation

    Design a Bayesian bandit with delayed feedback, churn protection, and rollback rules; compare regret to fixed-split testing under real-world constraints.

    Machine Learningbanditsbayesian-inferenceexperimentationonline-learning
  • Machine LearningHardModel answer
    Variational Autoencoders: Theory and Training Dynamics

    Derive the ELBO objective for VAEs, explain gradient estimation through reparameterization, compute the KL term analytically, and diagnose posterior collapse.

    Machine Learninggenerative-modelsvariational-inferencedeep-learning
  • 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
  • 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
  • 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