practice a little every day — you've got this ♡
ML Interview Problems
Practice 5981 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.
- 5981
- Problems
- 2215
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 241–270 of 512 results
- Machine LearningMediumModel answerTurning an ML Experiment Into Lessons for Agent Design
Describe a recent ML experiment you owned, separate measurement from interpretation, and show how its findings would shape a concrete component of an autonomous agent.
Machine Learningresearch-communicationai-agentsexperiment-designevaluation - Machine LearningMediumModel answerBias-Variance, Calibration, and Drift: A Production ML Walkthrough
Explain the bias-variance decomposition, what a calibrated probability means and how to repair one, and how concept drift differs from covariate shift in production.
Machine Learningbias-variancecalibrationmodel-driftcovariate-shift - Machine LearningHardModel answerAudit a Feature Pipeline for Silent Failures, Then Design for Freshness
Spot every category of production risk in a passing-tests feature pipeline PR, then choose the right serving architecture for batch, near-real-time, and request-time features.
Machine Learningfeature engineeringtraining-serving skewfeature storeML infrastructure - Machine LearningHardModel answerDesigning a Sample-Wise Double Descent Experiment in Linear Regression
Design and analyze a synthetic linear regression experiment that demonstrates how test error spikes near the interpolation threshold as sample size varies.
Machine Learningdouble descentgeneralizationlinear regressionbias-variance - Machine LearningHardModel answerValue Functions and the Recursive Structure of MDPs
Derive and interpret the recursive equations that relate current value to immediate rewards and future expected value in reinforcement learning.
Machine Learningreinforcement-learningmdpvalue-functionsdynamic-programming - Machine LearningHardModel answerConfusion Matrix Rates, Sigmoid Forward Pass, and Activation Choice
Work through a screening-style ML set: pick the confusion matrix matching target TPR/FPR, hand-compute a sigmoid neuron, and justify activation choices per layer.
Machine Learningconfusion-matrixrocsigmoidactivation-functions - Machine LearningHardModel answerDesign an End-to-End RAG System for a Large Document Corpus
Design a production RAG pipeline that ingests millions of documents, retrieves grounded context, and generates cited answers with low latency at scale.
Machine LearningRAGLLMvector-searchsystem-design - Machine LearningHardModel answerUltra-Low-Latency GBDT Inference for a Live Trading Pipeline
Design an end-to-end strategy to cut a 1,000-tree gradient-boosted ensemble's inference time from 120 µs to under 5 µs p99 without changing any prediction.
Machine Learninginference optimizationGBDTlow-latencySIMD - Machine LearningMediumModel answerVideo anomaly detection pipeline for real-time surveillance
Design an ML system to identify threatening behaviors in live camera feeds, handling extreme class imbalance and deployment constraints.
Machine Learningcomputer-visionreal-time-systemsrare-event-detectionml-system-design - Machine LearningMediumModel answerML Infrastructure for Real-Time Engagement Prediction
Build an end-to-end platform for predicting user engagement likelihood, covering feature pipelines, online/offline stores, training workflows, and high-throughput inference.
Machine Learningml-systemsfeature-engineeringinference-architectureml-ops - Machine LearningHardModel answerSocial Media Sentiment as a Stock Return Signal: End-to-End ML Design
Design a machine learning pipeline that extracts predictive signals from a high-volume social media stream and combines them with market data to forecast near-term stock returns.
Machine Learningnlptime-seriesfeature-engineeringsignal-validation - Machine LearningHardModel answerSimulating Traffic Participants for Autonomous Vehicle Training
Design a system for modeling the behavior of surrounding vehicles, pedestrians, and cyclists in a closed-loop driving simulator used to train and evaluate an autonomous driving agent.
Machine Learningsimulationreinforcement-learningautonomous-drivingmulti-agent - Machine LearningHardModel answerPredicting Turbine Power Output from Snapshot Weather Data
Design a tabular regression pipeline that maps weather and turbine attributes at a single instant to power output, covering physics features, data cleaning, model choice, validation and calibrated uncertainty.
Machine Learningregressionfeature-engineeringgradient-boostingmodel-validation - Machine LearningMediumModel answerRobustness Testing: Universal Adversarial Triggers on Small LLMs
Design a controlled offline evaluation framework to discover and measure universal adversarial triggers on a small language model like GPT-2, covering threat modeling, optimization concepts, metrics, and safety guardrails.
Machine Learningadversarial-robustnesslanguage-modelsred-teaming - Machine LearningHardModel answerUncover What Drives Listing Conversions in a Ride-Share Marketplace
Design an end-to-end analysis to find which listing, host, and market features causally drive booking conversion, then validate findings with experiments.
Machine Learningcausal inferenceproduct analyticsfeature importanceexperimentation - Machine LearningHardModel answerBuilding a Secure RAG System for Legal Document Search
Design a retrieval-augmented generation pipeline that enables lawyers to query internal memos with verified citations and strict access controls.
Machine Learningragnlpinformation-retrievalaccess-control - Machine LearningEasyModel answerFundamentals of KNN and PCA: Theory and Practical Considerations
Discuss K-Nearest Neighbors and Principal Component Analysis, covering their mechanics, hyperparameter selection, computational challenges, and when each method works well or fails.
Machine Learningknnpcadimensionality-reductionfundamentals - Machine LearningMediumModel answerBuilding a Kid-Suitability Filter for Rental Listings
Design a probabilistic classifier that marks rental listings as suitable for infants and children, covering labeling, features, modeling, evaluation, host gaming, fairness, and cold start.
Machine Learningml-system-designclassificationtrust-and-safetyfairness - Machine LearningMediumModel answerBuilding and Deploying an End-to-End Machine Learning System
Walk through a complete ML system you've owned, from problem definition through production deployment, then discuss resolving technical disagreements.
Machine Learningml-system-designproduction-mlcross-functional-collaboration - Machine LearningEasyModel answerGradient Boosting with Cross-Validation: Train, Evaluate, and Persist
Build a sklearn Pipeline with gradient boosting, measure generalization via stratified 5-fold ROC-AUC, then refit on all data and save to disk.
Machine Learninggradient-boostingcross-validationsklearnpipeline - Machine LearningMediumModel answerMulti-Head Attention Forward Pass, Built from Primitives
Implement the forward pass of a multi-head attention layer using only basic tensor operations, handling projections, head splitting, scaled dot-product attention, and masking.
Machine Learningtransformersattentionnumpydeep-learning - Machine LearningMediumModel answerReview a Feature Preprocessing Class
Critique a Python class that scales numerical features and encodes categorical ones, explaining its design pattern and identifying bugs.
Machine Learningcode-reviewdata-preprocessingdata-leakageml-pipeline - Machine LearningHardModel answerCNN vs Recurrent Models, Plus From-Scratch K-Means
Compare convolutional and recurrent architectures, derive LSTM gating and tensor shapes, then implement and analyze a vectorized K-means with k-means++ seeding.
Machine Learningcnnlstmk-means - Machine LearningHardModel answerNormalization Strategies: Batch vs Layer Normalization
Explain how batch and layer normalization differ in computation, statistics, parameters, and inference behavior, plus debugging approaches.
Machine Learningnormalizationdeep-learningtraininginference - Machine LearningMediumModel answerLLM Internals: Architecture, Fine-Tuning, and Evaluation
Explain decoder-only Transformer internals, compare positional encoding schemes, choose a PEFT strategy, and design an evaluation pipeline for a production LLM.
Machine Learningllmtransformersfine-tuningpeft - Machine LearningMediumModel answerOffline Evaluation Framework for a Video Safety Classifier
Design an end-to-end offline evaluation pipeline for a binary content classifier, covering metrics, label collection, calibration, threshold choice, and fairness slicing.
Machine Learningclassificationprecision-recallfairnessclass-imbalance - Machine LearningMediumModel answerDesign an RL-Trained Q&A Assistant with Low-Latency Serving
Design the full stack for a question-answering assistant: real-time serving, training data collection, RL reward design, and mitigations for reward failure modes.
Machine Learningrl-from-human-feedbackllm-servingreward-designrag - Machine LearningMediumModel answerBuilding a Multi-Model Enterprise AI Research Platform
Design a production agent system for financial analysts, covering model customization strategies, agent orchestration patterns, structured output enforcement, and multi-tenant serving.
Machine Learningllm-systemsagent-designfine-tuningproduction-ml - Machine LearningMediumModel answerBuild an Agent Pipeline to Revise Contracts Against Rule Sets
Design a system that uses LLMs to automatically rewrite a contract so it satisfies dozens of compliance rules, handling overlaps, conflicts, verification, and cost.
Machine Learningllm-agentsmulti-step-reasoningedit-trackingverification - Machine LearningHardModel answerDesign a RAG-Powered Knowledge Assistant with Access Control
Architect a retrieval-augmented generation system that answers natural language queries over heterogeneous internal documents with strict permissions, low latency, and near-real-time freshness.
Machine LearningRAGLLMsystem-designinformation-retrieval