practice a little every day — you've got this ♡
Machine Learning Interview Problems
Practice 5972 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.
- 5972
- Problems
- 2212
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 121–150 of 511 results
- Machine LearningHardModel answerDesigning Alignment & Safeguards Against AI Sycophancy and Over-Reliance
Analyze sycophancy and emotional over-dependence in conversational LLMs, detailing root causes, evaluation metrics, algorithmic mitigations, and agency-preserving product controls.
Machine Learningmachine-learningai safetyrlhfllm alignment - Machine LearningHardModel answerOptimize Perishable Food Stocking Under Asymmetrical Failure Costs
Design an end-to-end ML and inventory system to predict demand distributions and output cost-optimal daily stocking levels under asymmetric waste and stockout penalties.
Machine Learningmachine-learningdemand-forecastingprobabilistic-modelingnewsvendor-problem - Machine LearningMediumModel answerNext-Month Purchase Model: Leak-Free Pipeline and AUC Evaluation
Build a reproducible stratified-split pipeline with a gradient-boosted classifier for repeat-purchase prediction, report held-out AUC, and propose two ways to improve generalization.
Machine Learninggradient-boostingscikit-learncross-validationauc - Machine LearningMediumModel answerDesigning a User-Generated Game Recommendation System
Architect an end-to-end recommendation backend and ML pipeline for a large platform offering user-created interactive experiences, emphasizing cold-start strategies and multi-task learning.
Machine Learningrecommendation-systemsmachine-learningsystem-designmulti-task-learning - Machine LearningMediumModel answerWhy Boosted Trees Generalize Better Than One Deep Tree
Explain which regularization mechanisms in gradient-boosted trees limit overfitting compared with a fully grown tree, and when boosting can still overfit.
Machine Learningxgboostgradient-boostingoverfittingregularization - Machine LearningMediumModel answerDiagnosing a Post-Release Quality Collapse in a Production Model
Walk through how you would investigate and fix a classifier whose live quality fell sharply right after a release, covering metrics, tooling, root-cause isolation and prevention.
Machine Learningmlopsmodel-monitoringdata-driftdebugging - Machine LearningMediumModel answerHarden a Messy Text Ingestor and Triage a Broken ML Training Repo
Design a fault-tolerant parser for noisy text records, hunt down three hidden bugs in a training codebase, and plan how to verify everything within a one-hour budget.
Machine Learningdebuggingdata-parsingdata-leakagepython - Machine LearningMediumModel answerPredicting a City's Temperature from Neighboring Towns
Use OLS with an intercept on daily temperature data to summarize variability, fit per-town slopes, and select the best one, two, or five predictor towns by in-sample MSE.
Machine Learninglinear-regressionolsfeature-selectionpandas - Machine LearningMediumModel answerAnalyzing Deep Learning Pillars: Normalization, Optimization, and Penalties
Evaluate how Batch Normalization, adaptive optimizers, and L1/L2 penalties impact neural network training stability, optimization dynamics, and weight sparsity.
Machine Learningdeep-learningoptimizationregularizationbatch-norm - Machine LearningHardModel answerPredicting Station-Level Micro-Mobility Checkout Demand
Architect an end-to-end machine learning pipeline to forecast hourly bike-sharing demand, covering censoring adjustments, spatial-temporal features, model selection, and backtesting.
Machine Learningmachine-learningtime-seriesdemand-forecastingfeature-engineering - Machine LearningMediumModel answerArchitectures and PEFT for Medical Summarization
Analyze generative model trade-offs, low-rank adaptation, and alignment techniques for domain-specific medical text summarization.
Machine Learninggenerative-aillmfine-tuningpeft - Machine LearningMediumModel answerBuilding a Trustworthy Document Q&A Assistant with Retrieval and LLMs
Design an internal question-answering assistant that retrieves enterprise documents to ground an LLM, then explain how you would measure, guard, and debug it.
Machine Learningragretrievalllmevaluation - Machine LearningHardModel answerRescuing a Rare-Event Image Flagger That Predicts Only "Safe"
A logistic regression flagger for rare harmful uploads shows high accuracy but no detections, sparse ID features, and uneven regional quality. Lay out a plan to diagnose and repair it.
Machine Learningimbalanced-datalogistic-regressioncategorical-encodingfairness - Machine LearningHardModel answerComprehensive Architectural Analysis of Transformers and Variants
Detailed breakdown of transformer mechanisms, computational complexity, stability strategies, structural variants, and domain-specific adaptations.
Machine Learningtransformersattention-mechanismdeep-learningllm - Machine LearningHardModel answerDeciding Whether a New Ads Ranking Model Can Retire the Old One
Judge whether a new ad-ranking model is ready to replace production: pre-launch checks, resolving a CTR vs revenue conflict, experiment design, and an executive-ready readout.
Machine Learningab-testingads-rankingmodel-evaluationguardrail-metrics - Machine LearningHardModel answerImplement Scaled Dot-Product Attention and Manual Backward Pass
Derive and implement the forward and backward passes for scaled dot-product multi-head attention without autograd, alongside causal masking and numerical stability considerations.
Machine Learningtransformersattentionbackpropagationdeep-learning - Machine LearningMediumModel answerCommercializing a Breakthrough Text-to-Video Model
Define a comprehensive strategy to transform a raw text-to-video ML model into a viable, scalable commercial product.
Machine LearningGenerative AIProduct StrategyMLOpsModel Deployment - Machine LearningHardModel answerUnderfitting Shallow Nets and Dying Gradients in Deep Sigmoid MLPs
Analyze why a shallow network underfits and a very deep sigmoid network fails to train, using the bias-variance decomposition, the backprop chain rule, ReLU and residual connections.
Machine Learningbias-variancevanishing-gradientsbackpropagationdouble-descent - Machine LearningMediumModel answerReviewing a Venv Setup Script and Data-Prep Transformers
Walk through a virtual-environment shell script, then review an outlier-clipping transformer and three imputers for design, style and testability, and write a key unit test.
Machine Learningshell-scriptingsklearn-transformersdata-leakageoutlier-handling - Machine LearningMediumModel answerDesign a Social Feed Negative Feedback Prediction Model
Architect an ML prediction pipeline to capture explicit and implicit user dissatisfaction on a social feed, handling extreme label skew, multi-task ranking, and real-time inference.
Machine Learningmachine-learningsystem-designrecommendation-systemsranking - Machine LearningHardModel answerML and Statistics Fundamentals: A Rapid-Fire Concept Review
Answer a broad set of statistics and ML fundamentals questions, from moment generating functions to attention, then sketch a system that finds relevant users.
Machine Learningstatisticsdeep-learninghypothesis-testingtree-ensembles - Machine LearningMediumModel answerLeakage-Safe Binary Classifier Workflow: From EDA to Monitoring
Design and implement an end-to-end binary classification workflow in Python, covering time-aware splits, imbalance, tuning, calibration, error analysis, explainability and production safeguards.
Machine Learningclassificationtime-aware-validationclass-imbalancecalibration - Machine LearningHardModel answerArchitectural Comparison of Sequence Models and MPC Integration
Detailed comparison of RNNs, LSTMs, Transformers, and Model Predictive Control, including mathematical formulations, structural trade-offs, and hybrid learning-control frameworks.
Machine Learningdeep-learningtransformersmpcrobotics - Machine LearningMediumModel answerArrival-Time Prediction for a Ride-Share App: End-to-End ML Design
Design a machine learning system that predicts driver pickup time and trip duration, covering labels, features, models, metrics, bias, noise, serving, monitoring, and post-launch experiments.
Machine Learningeta-predictionspatiotemporalmodel-designcalibration - Machine LearningMediumModel answerTargeting Strategy for a Streaming Show Launch Email Campaign
Plan an end-to-end email targeting system for a new title release, covering cold start, causal uplift modeling, offline metrics, and online A/B testing.
Machine Learninguplift-modelingrecommendation-systemsab-testingsystem-design - Machine LearningHardModel answerDesign a Multimodal Video Search Engine
Design a scalable text-to-video and video-to-video retrieval architecture handling billions of clips, detailing modeling choices, vector indexing, serving pipelines, and evaluation strategy.
Machine Learningsystem-designinformation-retrievalvector-searchdeep-learning - Machine LearningMediumModel answerAI-Powered Weekly Shop: Pick a Shopper, Fix Their Pain, Ship a V1
Propose an AI feature strategy for an online grocery service: choose a shopper segment, find high-value pain points, prioritize a first release, and define success metrics and guardrails.
Machine Learningproduct-senseai-productrecommendationsprioritization - Machine LearningHardModel answerClassifying Imbalanced Clinical Outcomes Under Heavy Missing Data
Architect an end-to-end binary classification pipeline for readmissions with missing data, extreme class imbalance, metrics choice, and feature-engineered logistic regression.
Machine Learningmissing-dataclass-imbalancelogistic-regressionevaluation-metrics - Machine LearningMediumModel answerImpact of Zero Initialization on Neural Networks and Linear Models
Analyze why setting all weights to zero causes hidden unit symmetry in deep networks while remaining functional for single-layer models.
Machine Learningdeep-learningneural-networksgradient-descentmodel-architecture - Machine LearningMediumModel answerFoundations of Generalization Error and Deep Network Gradient Dynamics
Break down bias-variance decomposition, diagnose deep learning overfitting with remedies, and derive vanishing gradient mechanics alongside modern structural solutions.
Machine Learningbias-varianceoverfittingvanishing-gradientsdeep-learning