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 391–420 of 511 results
- Machine LearningMediumModel answerBuilding a Time-Safe Retention Prediction Model
Design a feature set and validation strategy to predict whether users will remain active, avoiding temporal leakage and quantifying predictive lift.
Machine Learningretentiontemporal-leakagefeature-engineering - Machine LearningMediumModel answerDesign a Low-Latency Retrieval Layer for a Large-Scale Product Catalog
Design the retrieval stage of a marketplace search system that surfaces relevant listings from tens of millions of items within a tight latency budget.
Machine LearningretrievalembeddingssearchANN - Machine LearningHardModel answerBuilding a Real-Time Ad Recommendation Engine
Design a machine learning system that delivers personalized advertisements to users at scale, covering infrastructure, modeling, and evaluation.
Machine Learningrecommendation-systemsrankingadsreal-time-ml - Machine LearningMediumModel answerFinding Duplicate Transactions in a Payment Dataset
Design a system to detect, classify, and quantify duplicate records in a payment transaction dataset, handling both exact matches and fuzzy near-duplicates.
Machine Learningrecord-linkagedata-qualityentity-resolutiondeduplication - Machine LearningHardModel answerBuild a Ranking Model for User Engagement
Design a complete ML ranking system including data collection, feature engineering, model architecture, evaluation metrics, and production deployment.
Machine Learningmachine-learningrankingproduction-mlsystem-design - Machine LearningHardModel answerDesigning a Multimodal Classifier for Prohibited Item Listings
Design an end-to-end ML system that detects policy-violating item-for-sale posts by combining text, image, and behavioral signals at platform scale.
Machine Learningmultimodalcontent-moderationclassificationsystem-design - Machine LearningHardModel answerTechniques to Control Overfitting in Neural Networks
Describe regularization methods that prevent overfitting, comparing weight penalties with dropout and explaining their train/test differences.
Machine Learningregularizationoverfittingdropoutweight-decay - Machine LearningMediumModel answerAudio ML Pipeline: Preprocessing Choices and Training Strategy
Design preprocessing and training for an audio ML system, comparing feature representations, normalization, augmentation, and explaining a complete training workflow.
Machine Learningaudio-mlfeature-engineeringmodel-trainingdata-pipeline - Machine LearningMediumModel answerModeling Quote Win Probability from RFQ Trade Logs
Build features from RFQ trading data, fit a logistic win-probability model, and quantify your pricing signal edge relative to competitors.
Machine Learningfeature-engineeringlogistic-regressioncensored-datatrading - Machine LearningMediumModel answerBuild a Document QA System with Grounded LLM Responses
Design an end-to-end system that answers user questions by retrieving relevant passages from a large corpus and generating responses with citations.
Machine Learningraginformation-retrievalllmproduction-ml - Machine LearningEasyModel answerOptimization Dynamics: Learning Rates and Gradient Flow
Explain how learning rate magnitude affects training stability and why gradient attenuation disproportionately impacts early layers in deep networks.
Machine Learningoptimizationgradientsdeep-learning - Machine LearningHardModel answerMitigating Reward Model Exploitation in RLHF
Design detection systems and training safeguards to prevent language models from gaming reward functions during reinforcement learning optimization.
Machine Learningreinforcement-learningrlhfreward-modelingpolicy-optimization - Machine LearningMediumModel answerLLM Architecture: Evolution, Multimodal Fusion, and Normalization
Explain generational advances in LLM families, how vision-language models integrate images, and why transformers use layer norm with pre-norm placement.
Machine Learningllmtransformersmultimodalnormalization - Machine LearningMediumModel answerBuild Linear Regression and MSE Loss Without Libraries
Code mean squared error from scratch, then build a linear regression class with fit and predict methods using gradient descent.
Machine Learninggradient-descentloss-functionsfrom-scratchnumerical-optimization - Machine LearningMediumModel answerImplement Mini-Batch Gradient Descent for Linear Regression
Build mini-batch gradient descent from scratch using NumPy to train a linear regression model with MSE loss.
Machine Learningoptimizationgradient-descentnumpylinear-regression - Machine LearningMediumModel answerMulti-Stage Retrieval System for Document Search
Design a scalable retrieval and ranking pipeline for querying 10M documents under 2s latency at 500 QPS with permission enforcement.
Machine Learningretrievalrankingragembeddings - Machine LearningMediumModel answerBuild a Recommendation Engine for Content Discovery
Design an ML system that delivers personalized content feeds combining user interests with global trends while maintaining low latency and diversity.
Machine Learningrecommendation-systemsml-system-designpersonalizationretrieval - Machine LearningHardModel answerEnsemble Methods and the Bias-Variance Tradeoff
Explain how bagging, boosting, and random forests reduce prediction error through their effects on bias and variance.
Machine Learningensemble-learningbias-variancerandom-forestboosting - Machine LearningHardModel answerBuild a RAG-powered enterprise document search platform
Design the end-to-end architecture for a production retrieval-augmented generation system serving internal knowledge search at scale.
Machine Learningragsearchml-systemsarchitecture - Machine LearningMediumModel answerEvaluating Equity Risk Models for Portfolio Applications
Design a framework to select between two equity risk models by testing forecast accuracy, structural validity, and practical usability in live portfolio decisions.
Machine Learningrisk-modelingmodel-evaluationportfolio-management - Machine LearningMediumModel answerEvaluate LLM Output Quality and Build a Groundedness Scorer
Design a full LLM evaluation system covering metrics, A/B comparison, hallucination detection, and a Python groundedness scorer that flags unsupported sentences.
Machine Learningllmevaluationhallucination-detectionrag - Machine LearningHardModel answerBuilding a Production-Ready Churn Prediction System
Design and debug a user retention model: fix temporal leakage, implement proper validation, calibrate for business decisions, and establish monitoring.
Machine Learningsupervised-learningdata-leakagemodel-evaluationcalibration - Machine LearningMediumModel answerCore ML and Statistics Concepts Explained
Demonstrate understanding of foundational machine learning and statistics concepts through definitions, examples, and practical considerations.
Machine Learningmachine-learningstatisticsdecision-treesneural-networks - Machine LearningHardModel answerDesign a Question-Answering System with Document Retrieval
Build a production-ready system that answers questions from local documents using an LLM API, vector search, and streaming responses.
Machine Learningragllmvector-searchapi-design - Machine LearningMediumModel answerBuild K-Means from Scratch and Contrast It with GMM
Implement Lloyd's algorithm with k-means++ seeding, handle edge cases, then explain how Gaussian Mixture Models and EM extend the core idea.
Machine Learningclusteringk-meansGMMEM algorithm - Machine LearningHardModel answerML-Driven Budget Pacing System for Programmatic Advertising
Design an end-to-end system that forecasts ad inventory and prices, dynamically paces campaign spend, and enforces hard budget caps across hundreds of thousands of concurrent campaigns.
Machine Learningml-system-designadsforecastingpacing - Machine LearningHardModel answerDesigning a Content Moderation System for Prohibited Videos
Design a production pipeline to detect harmful video content at scale, handling extreme imbalance, adversarial evasion, and human review workflows.
Machine Learningml-systemsclassificationimbalanced-datamultimodal - Machine LearningMediumModel answerBuild an Audio Episode Summarization Pipeline
Design an end-to-end ML system that automatically produces text summaries for audio content as new episodes are released.
Machine Learningml-system-designnlpaudio-processingproduction-ml - Machine LearningHardModel answerDelivery Time Estimation: Full ML System Design
Design an end-to-end ML system to predict food delivery duration, covering features, leakage, modeling, calibration, cost-sensitive decisions, fairness, and production deployment.
Machine Learningeta-predictionquantile-regressionfeature-engineeringcalibration - Machine LearningHardModel answerDesign a Document Q&A Service with Retrieval-Augmented Generation
Architect a production RAG system that lets employees query a large internal document corpus and get cited, access-controlled answers within two seconds.
Machine LearningRAGLLMvector-searchsystem-design