practice a little every day, paws crossed ♡
Machine Learning Interview Questions
Practice 9403 coding, system design and machine learning questions from 546 companies, sorted by role, topic and interview round. Every question has step-by-step hints, a code runner that supports 8 languages and an AI mentor; members also get the full solution walkthrough.
- 9403
- Questions
- 546
- Companies
- 11
- Topics
- 8
- Languages
Showing 61–90 of 348 results
- C3 AIHardData ScientistCompare Transformers and RNNs and Derive Attention Complexity
Evaluate candidate's deep learning foundations by comparing Transformer and recurrent architectures and deriving exact time/memory complexities for standard scaled dot-product attention across training and inference.
Machine LearningTechnical ScreenTransformersRNNAttention Mechanism - C3 AIHardData ScientistConnect Bias-Variance Trade-offs to Bagging and Boosting
This question tests the conceptual understanding of how ensemble methods manipulate model error components through different structural paradigms.
Machine LearningTechnical ScreenBias-VarianceEnsemble LearningBagging - C3 AIEasyData ScientistIdentify a classic bagging algorithm
This interview question evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer for Identify a classic bagging algorithm states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningTechnical Screen - C3 AIHardData ScientistKeep Gradient Descent from Stalling at Poor Solutions
Design a rigorous diagnostic procedure and remediation plan for gradient descent stalling at suboptimal loss values, differentiating true local minima from saddle points, vanishing gradients, and poor conditioning.
Machine LearningTechnical ScreenOptimizationDeep LearningLoss Landscapes - CVS HealthHardData ScientistDesign classification under missingness and imbalance
This question evaluates a data scientist's competency in missing data diagnosis and imputation, handling severe class imbalance, choosing and interpreting classification and calibration metrics, and improving logistic regression as part of an end-to-end predictive pipeline on claims and EHR data, and it falls under the Machine Learning domain.
Machine LearningTechnical Screen - CVS HealthHardData ScientistHandle challenges in MMM/MMX
This question evaluates a data scientist's competency in applied Machine Learning and causal inference for marketing-mix modeling, focusing on diagnosing model fragility from multicollinearity, endogeneity, non‑stationarity, measurement error, and decisions around adstock, saturation and promotion effects.
Machine LearningTechnical Screen - CVS HealthEasyData ScientistReduce LLM hallucination and handle class imbalance
This question tests your ability to design a robust pipeline for detecting clinical inaccuracies in LLM outputs while managing highly imbalanced datasets where missing a critical diagnosis is costlier than a false alarm.
Machine LearningTechnical ScreenLLMRAGImbalanced Learning - CVS HealthMediumData ScientistTune classifier and compute key metrics
This question tests your ability to optimize a classification threshold based on business costs and your understanding of how to bridge classification and regression tasks.
Machine LearningTechnical ScreenClassificationCost-sensitive LearningThresholding - CadenceMediumMachine Learning EngineerExplain Transformer Positional Encoding
This question tests your conceptual and technical understanding of why Transformers require positional encodings and the mathematical mechanics of different encoding strategies.
Machine LearningTechnical ScreenTransformerAttentionNLP - Capital OneMediumData ScientistCompare Logistic Regression and Random Forest in Python
Design, evaluate, and contrast a Logistic Regression baseline and a Random Forest model on an imbalanced credit default prediction dataset in Python. Walk through pipeline design, validation strategy, probability calibration, decision thresholding, and production trade-offs.
Machine LearningTechnical ScreenClassificationModel EvaluationPipelines - Capital OneMediumData EngineerDeep-dive XGBoost handling and overfitting
This question evaluates proficiency with gradient-boosted decision trees and related competencies such as native versus imputation handling of missing values, causes and control of overfitting via regularization and hyperparameters, selection of metrics and validation strategies for imbalanced outcomes, and practical debugging concerns like data leakage, time-based splits, and calibration for a Data Engineer role. It is commonly asked in Machine Learning interviews to assess both conceptual understanding of algorithm behavior and practical application of model evaluation and deployment-ready validation techniques.
Machine LearningTechnical Screen - Capital OneEasyData ScientistDesign robber detection from surveillance video
This question assesses the ability to design an end-to-end computer vision pipeline for detecting rare, high-stakes events in real-time video surveillance.
Machine LearningTechnical ScreenComputer VisionSystem DesignAnomaly Detection - Capital OneMediumData ScientistHow would you design delay and watchlist models?
This question evaluates competencies in end-to-end machine learning system design, covering time-series regression and label-leakage concerns, feature engineering, handling skewed targets and rare costly events, imbalanced and open-set face-recognition classification, evaluation and calibration, thresholding and decision systems, deployment and monitoring, and ethical/privacy trade-offs. It is commonly asked to assess the ability to balance statistical modeling with operational, business, and legal constraints; the domain is Machine Learning for a Data Scientist role and the required level spans both conceptual understanding and practical application.
Machine LearningTechnical Screen - Capital OneHardData ScientistModel flight delays with EDA and explanation
This question evaluates a data scientist's competency in time-aware predictive modeling, exploratory data analysis for leakage and target drift detection, temporal cross-validation design, feature engineering and handling of rare categories and class imbalance, model selection (linear and tree-based), explainability and robustness testing, and deployment/experiment specification within the Machine Learning / Data Science domain. It is commonly asked because it probes practical application of production-ready ML workflows on temporally ordered data—assessing conceptual understanding of data leakage, drift, and validation alongside practical skills for metric selection, thresholding, inference contracts and operational reliability, so the level of abstraction spans both practical application and conceptual understanding.
Machine LearningTechnical Screen - CitadelMediumData ScientistAnalyze Correlations and Generate Gaussians
This question evaluates understanding of correlation properties, feasible dependence constraints in multivariate distributions, construction of joint random variables with specified pairwise correlations, and methods for generating Gaussian samples from uniform random number generators, testing skills in probability, statistics, and simulation within the Machine Learning domain. It is commonly asked to assess both conceptual understanding of dependence structures and positive semidefiniteness and practical application of random variate generation techniques, reflecting a mix of conceptual and applied competencies for data scientist roles.
Machine LearningTechnical Screen - CitadelMediumData ScientistAnalyze Town Temperatures and Select Predictors for NYC
Implement exact pandas and NumPy functions for temperature statistics, single- and two-town regressions, deterministic return values, and greedy five-feature forward selection.
Machine LearningTechnical Screen - CitadelEasyData ScientistChoose Between Precision and Recall for a Classification Decision
Review precision and recall for imbalanced classification and learn how both change with the decision threshold. Choose an operating point from error costs, capacity, calibration, uncertainty, and segment performance instead of treating either metric as universally best.
Machine LearningTechnical Screen - CitadelHardData ScientistClassify Variable-Length, Unordered Point Sequences with Missing Features
A staged live-coding ML task: classify whole sequences of 6-feature points as 0 or 1, then adapt the model as lengths vary from 16 to 100, point order stops being meaningful, and some features go missing. Tests model selection, length and permutation invariance, and practical missing-value handling.
Machine LearningTechnical Screen - CitadelEasyData ScientistDecide Whether an LSTM Is Appropriate for Sequence Data
Decide whether an LSTM is appropriate for sequential data by defining the sequence unit, prediction horizon, masking, and time-safe validation. Compare the model with lag-based and simpler baselines while considering data size, overfitting, latency, and maintainability.
Machine LearningTechnical Screen - CitadelHardData ScientistDesign Framework for Robust House-Price Prediction Model
Evaluates robust house-price prediction modeling across diagnostics, features, scale, and validation. Strong answers cover linear regression diagnostics, Cook's distance, leverage, Random Forest complexity controls and variable importance, housing-market feature engineering, leakage prevention, large-scale training, and time-geography validation.
Machine LearningTechnical Screen - CitadelHardData ScientistDesign city home-price prediction system
This question evaluates proficiency in end-to-end machine learning system design for geospatial property price prediction, covering skills such as feature engineering, time- and spatial-aware validation, model selection, interpretability, fairness/compliance, deployment, monitoring, and error analysis.
Machine LearningTechnical Screen - CitadelMediumData ScientistDetermine When a Quadratic Has Finite Minimum
This question evaluates understanding of quadratic optimization, linear algebra, and convexity concepts—particularly properties of quadratic forms, matrix symmetry, and conditions for boundedness in real-valued unconstrained minimization—and why these properties matter for existence of minima.
Machine LearningTechnical Screen - CitadelHardData ScientistDiagnose outliers and influence in linear regression
This question evaluates a data scientist's competency in diagnosing outliers, high-leverage points, influential observations, and Cook's distance in ordinary least squares regression, including recognition of robust alternatives and rationale for reporting model-review decisions.
Machine LearningTechnical Screen - CitadelHardData ScientistEstimate OLS via streaming sufficient statistics
This question evaluates proficiency in streaming/out-of-core linear regression, including computing sufficient statistics with an intercept, assessing numerical stability of normal equations versus QR/SVD or incremental methods, incorporating ridge penalties, and designing parallel fault-tolerant computations.
Machine LearningTechnical Screen - CitadelMediumData ScientistExplain factor leakage checks and IC/ICIR filtering
This question tests the conceptual understanding of signal quality metrics and the practical steps required to prevent look-ahead bias and overfitting when developing quantitative trading factors.
Machine LearningTechnical ScreenQuantitative FinanceAlpha ModelingBacktesting - CitadelHardMachine Learning EngineerMake a hard MoE router differentiable
Make a hard MoE router differentiable evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningTechnical Screen - CoupangMediumData ScientistPredicting the Next Elevator Call Location
This question tests the ability to design a spatio-temporal forecasting system to predict future elevator call locations, focusing on feature engineering, model selection, and handling data sparsity.
Machine LearningTechnical ScreenTime-SeriesFeature EngineeringSpatio-Temporal - CrestaMediumSoftware EngineerDesign sequence decoding with greedy and beam search
This interview question evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer for Design sequence decoding with greedy and beam search states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Machine LearningTechnical Screen - DatadogHardMachine Learning EngineerImplement Focal Loss for Class-Imbalanced Classification
Tests the ability to implement binary focal loss with raw logits from first principles, emphasizing numerical stability, custom weighting, and tensor reduction strategies.
Machine LearningTechnical Screenmachine-learningdeep-learningpytorch - DatadogHardMachine Learning EngineerImplement Grouped-Query Attention (GQA)
Implement the Grouped-Query Attention (GQA) mechanism commonly used in modern LLMs to balance serving memory bandwidth with generation quality. You will handle tensor reshaping/expansion across query head groups, scaled dot-product attention, and causal masking.
Machine LearningTechnical Screendeep-learningtransformerspytorch