practice a little every day — you've got this ♡
Machine Learning Interview Problems
Practice 5967 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.
- 5967
- Problems
- 2210
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 31–60 of 510 results
- Machine LearningHardModel answerDesigning LLM Search and Retrieval for High-Token Inputs and Corpus
Architect an end-to-end RAG system capable of ingesting mega-documents and handling high-token, unstructured user inputs with low latency, strict permissions, and high citation fidelity.
Machine Learningragllmsearchvector-database - Machine LearningHardModel answerFive ML Fundamentals: Regression, Forests, Adam, Network Width
Answer five conceptual machine learning questions on regression assumptions, logistic loss, random forest feature sampling, Adam versus SGD, and narrow versus wide networks.
Machine Learninglinear-regressionlogistic-regressionrandom-forestadam - Machine LearningMediumModel answerUnderstanding Layer Normalization, Residual Mechanics, and Alternatives
A deep dive into Layer Normalization in Transformers: mathematical formulation, Pre-LN vs Post-LN gradient stability, RMSNorm/BatchNorm comparisons, and inference memory trade-offs.
Machine Learninglayer-normalizationtransformersdeep-learninggradients - Machine LearningMediumModel answerDesign a Scalable Video Recommendation Architecture and Logging Engine
Architect a low-latency video feed and next-up system with focus on feature pipelines, stream joins, impression logging, and multi-objective ranking.
Machine Learningmachine-learningsystem-designrecommendation-systemslogging-infrastructure - Machine LearningMediumModel answerScreening Pipeline for Abusive Jobs and Memory Crashes
Design an ML-backed gate for a shared compute platform that flags abusive submitted code or text and predicts memory-exhaustion crashes, with low latency, high precision, and drift monitoring.
Machine Learningml-system-designcontent-moderationresource-forecastingadversarial-robustness - Machine LearningMediumModel answerSpeeding Up a 175B-Parameter LLM Serving Cluster
Diagnose and fix low GPU utilization and high latency in a large transformer serving fleet, covering KV cache memory, compute efficiency and multi-node communication.
Machine Learningllm-servingkv-cachequantizationtensor-parallelism - Machine LearningHardModel answerBuilding a Low-Latency Ad Ranking Pipeline with ML
Design an end-to-end ML system that picks personalized ads for millions of users within a tight latency budget, covering data, models, exploration, evaluation and scaling.
Machine Learningctr-predictionrecommendationbanditscounterfactual-evaluation - Machine LearningHardModel answerLinear Regression, Tree Ensembles, Rare Fraud, and Seasonal Forecasting
Explain OLS and its assumptions, compare bagging, random forests and boosting, handle a 0.2% positive class, and outline a forecasting pipeline for data with trend and seasonality.
Machine Learningolsensemblesclass-imbalancetime-series - Machine LearningMediumModel answerFixing an Underfit Boosted-Tree Model: Which Knob to Loosen?
Pick the one hyperparameter that, when lowered, makes a gradient-boosted tree ensemble more flexible, justify it, and describe how to confirm underfitting.
Machine Learninggradient-boostingunderfittinghyperparameter-tuningbias-variance - Machine LearningMediumModel answerBuilding a Classifier for Authentic vs Synthetic DNA Sequences
Design a robust system to classify genuine vs generated DNA sequences, leveraging a massive unlabelled real corpus, minimal ground-truth labels, custom negative generators, and bio-aware metrics.
Machine Learningmachine-learningsequence-modelingsemi-supervised-learninganomaly-detection - Machine LearningEasyModel answerChoosing a Search Strategy for Model Hyperparameters
Compare strategies for searching hyperparameters, from hand tuning to Bayesian and early-stopping methods, weighing cost, parallelism and sample efficiency.
Machine Learninghyperparameter-tuningbayesian-optimizationrandom-searchhyperband - Machine LearningMediumModel answerDecoding Text from Next-Token Probabilities: Greedy vs Beam
Build a greedy decoder and a width-k beam search over a next-token model, return each sentence with its probability, and explain why long outputs score low and how to correct it.
Machine Learningbeam-searchdecodinglanguage-modelslog-probabilities - Machine LearningMediumModel answerBuild a Personalized Swipe-Feed Ranking Pipeline for Clips
Design an end-to-end ML recommender for a vertical clip feed with multi-stage retrieval and ranking, real-time learning, diversity and safety controls, and cold-start handling.
Machine Learningrecommendation-systemsml-system-designretrieval-and-rankingcold-start - Machine LearningMediumModel answerEnterprise Data Asset Retrieval for Autonomous Coding Agents
Design a multi-stage retrieval system that surfaces the right database tables and analytical notebooks for an internal AI coding assistant answering data queries.
Machine LearningInformation RetrievalRAGSystem DesignML System Design - Machine LearningMediumModel answerDesigning and Deploying an End-to-End ML Pipeline
Walk through an end-to-end machine learning project lifecycle, covering framing, architecture, validation, monitoring, and causal business impact.
Machine Learningml-opsmodel-deploymentfeature-storedata-leakage - Machine LearningMediumModel answerNine-Part ML Fundamentals and Model Diagnostics Review
Answer nine practical questions on statistical testing, model fit, causality, representations, optimization, imbalanced data, misleading accuracy, and experiment sanity checks.
Machine Learningml-fundamentalsbias-variancegradient-descentimbalanced-data - Machine LearningHardModel answerPredicting Late Arrivals: Leakage-Safe Flight Delay Modeling
Design a leakage-safe pipeline that predicts 15+ minute late arrivals from pre-departure data: audits, time-based validation, models, explanations, stress tests, and an A/B plan.
Machine Learningdata-leakagetime-series-validationlightgbmcalibration - Machine LearningMediumModel answerGeneralization Gaps and Weight Penalties: A Short ML Primer
Describe how to recognize a model that memorizes its training data, list ways to curb it, and contrast absolute-value and squared-weight penalties on a model's coefficients.
Machine Learningoverfittingregularizationbias-variancegeneralization - Machine LearningHardModel answerDesign a Real-Time Fraud Prevention Platform
Architect a scalable, low-latency system to score payment transactions for fraud under severe class imbalance and delayed feedback loops.
Machine Learningsystem-designmachine-learningfraud-detectionfeature-store - Machine LearningHardModel answerHow Bagging and Boosting Trade Off Bias Against Variance
Explain how random forests and gradient boosting reshape the bias-variance decomposition, derive the variance of correlated averages, and say when each ensemble is the better choice.
Machine Learningbias-variancerandom-forestgradient-boostingensembles - Machine LearningHardModel answerAnatomy of a Tool-Using LLM Agent and Its Control Flow
Describe the building blocks of a language-model agent, what each is responsible for, and how they cooperate across a multi-step task with safety and evaluation in mind.
Machine Learningllm-agentstool-usememoryplanning - Machine LearningHardModel answerBuild a Causal Transformer Language Model Block by Block
Write a decoder-only transformer from memory in PyTorch: embeddings, hand-written causal multi-head attention, feed-forward layers, residual wiring, and a logits head.
Machine Learningtransformerpytorchself-attentioncausal-mask - Machine LearningHardModel answerRecommender for a Fast-Changing Catalog with Few Interactions
Design a two-stage recommender for a content app where users and items are constantly new, covering models, exploration, off-policy evaluation, A/B testing and a strict latency budget.
Machine Learningrecommender-systemscold-starttwo-toweroff-policy-evaluation - Machine LearningMediumModel answerMini-Batch SGD versus Adam: Update Rules and Trade-offs
Derive the parameter update rules for mini-batch SGD (with and without momentum) and Adam, explain bias correction, and compare the two on speed, tuning, memory and generalization.
Machine Learningoptimizationsgdadamdeep-learning - Machine LearningMediumModel answerBuilding Search for a Mobile App Marketplace
Design an end-to-end search system for a mobile app marketplace covering retrieval, ranking, personalization, cold start, abuse prevention, experimentation, and the path from heuristics to learned ranking.
Machine Learningsearchrankingml-system-designretrieval - Machine LearningMediumModel answerChoosing Artwork per Viewer: Designing a Poster Ranking Service
Design an ML system that picks which candidate artwork to display for each title and viewer on a video streaming service, covering reward design, exploration, cold start, serving, and evaluation.
Machine Learningcontextual-banditpersonalizationoff-policy-evaluationcold-start - Machine LearningMediumModel answerOLS Guarantees and Attention Mechanics in Transformers
Explain when OLS is the best linear unbiased estimator, how correlated features inflate variance, and how attention, positional signals and long-context costs work in Transformers.
Machine Learninglinear-regressiongauss-markovmulticollinearitytransformers - Machine LearningMediumModel answerLeak-Free Pipeline for a Rare-Event Classifier
Build a scikit-learn and imbalanced-learn workflow for a rare-positive dataset that avoids leakage, tunes the decision threshold, and reports precision, recall and F1 on untouched data.
Machine Learningimbalanced-learnsmotescikit-learnprecision-recall - Machine LearningMediumModel answerDesign a Production ML Pipeline and Prevent Overfitting on Tabular Data
Architect an end-to-end machine learning pipeline for real estate price prediction, covering EDA, spatial validation, feature scaling, GBDT baselines, and neural network regularization.
Machine Learningtabular dataregressioncross-validationregularization - Machine LearningHardModel answerDiagnosing a Misbehaving Encoder-Decoder Training Loop
Find and fix the hidden bugs in a PyTorch encoder-decoder trainer where validation stays at chance, AMP crashes, and runs are not reproducible, then plan the debugging.
Machine Learningtransformerspytorchdebuggingmixed-precision