practice a little every day — you've got this ♡
ML Interview Problems
Practice 5976 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.
- 5976
- Problems
- 2213
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 331–360 of 511 results
- Machine LearningMediumModel answerCourse recommender aligned to a user's target job skills
Design an end-to-end system that suggests learning courses matching a user's job-search or role goals, including job-posting text extraction, ranking, evaluation, and guardrails.
Machine Learningrecommender-systemsfeature-engineeringrankingcold-start - Machine LearningHardModel answerDesign a Real-Time and Batch AI Model Serving Platform
Design a cloud inference platform that serves ML models at scale, covering hardware selection, autoscaling, multi-tenancy, cost controls, and safe deployment strategies.
Machine Learningml-system-designinferencekubernetesgpu - Machine LearningMediumModel answerMinimize Squared Error: Deriving the OLS Slope and Intercept
Derive the closed-form least-squares estimators for a simple linear model by minimizing MSE, and reason through what breaks when input variance is zero.
Machine Learninglinear-regressioncalculusOLSstatistics - Machine LearningHardModel answerDiagnosing and Fixing Fragility in Marketing Mix Models
Identify and resolve common failure modes in a marketing mix model with correlated channels, structural breaks, and endogeneity.
Machine Learningcausal-inferencemarketing-analyticsbayesian-methods - Machine LearningMediumModel answerBuilding a Policy-Driven Support Assistant with RAG
Design an ML system that transforms company policy documents into actionable support workflows with evidence tracking and version control.
Machine Learningragnlpml-systemspolicy-grounding - Machine LearningHardModel answerDesigning a Restaurant Ranking System for a Food Delivery App
Design an end-to-end personalized ranking system for a food delivery home feed, covering objectives, features, model architecture, evaluation, and feedback loops.
Machine Learningrankingrecommendation-systemsmulti-task-learningfeature-engineering - Machine LearningMediumModel answerML Fundamentals: Calibration, Features, Tokenization, Optimizers
Demonstrate working knowledge of probability calibration methods and metrics, feature selection strategies including neural approaches, subword tokenizer variants, and Adam optimizer mechanics.
Machine Learningmachine-learningdeep-learningnlpmodel-training - Machine LearningMediumModel answerFraud Scorer: Picking a Decision Threshold with Asymmetric Costs
Select and justify an operating threshold for a fraud probability scorer given asymmetric FP/FN costs, then cover calibration, drift monitoring, and safe rollout.
Machine Learningcost-sensitive learningthreshold selectioncalibrationdrift monitoring - Machine LearningHardModel answerDesign a Hybrid Model Evaluation System with Human Review
Design a scalable evaluation platform that combines automated metrics, LLM-based judging, and human expert review to assess ML model outputs with full provenance tracking.
Machine Learningsystem-designmlopshuman-in-the-loopevaluation - Machine LearningMediumModel answerPredictive Modeling for Wine Ratings from Chemical Properties
Build and validate a model that predicts wine ratings from chemical measurements, choosing appropriate problem framing, metrics, and feature analysis methods.
Machine Learningsupervised-learningfeature-engineeringmodel-evaluationordinal-prediction - Machine LearningHardModel answerRoute Each Order to One of Two Suppliers to Minimize Cost
Design a constrained decision model that selects a supplier per order to minimize expected total cost while keeping SLA attainment at or above 95% and staying within a monthly budget.
Machine Learningcost-sensitive learningcausal inferenceconstrained optimizationoff-policy evaluation - Machine LearningHardModel answerDesign an Agentic Customer Support Automation System
Design an end-to-end AI system that scrapes tickets from a browser-only UI, enriches them with user data from an API, and generates personalized support replies.
Machine Learningagentic-aibrowser-automationllmsystem-design - Machine LearningMediumModel answerMobile Ad Creative Budget Allocation with Funnel & ROI Analysis
Given funnel and revenue data for two mobile ad creatives, decide how to split incremental budget by reasoning through marginal ROI, LTV, and saturation.
Machine LearningproductmarketingROIfunnel-analysis - Machine LearningHardModel answerDesign a Hybrid Search System for a Corporate Knowledge Base
Design a scalable, low-latency search engine that combines keyword and semantic retrieval over 100M enterprise documents with personalized ranking.
Machine Learninginformation-retrievalvector-searchrankingpersonalization - Machine LearningHardModel answerDesign a Real-Time Surge Pricing Engine for a Ride-Hailing Platform
Design an end-to-end dynamic pricing system for a two-sided ride-hailing marketplace, balancing supply, demand, fairness, and service quality.
Machine Learningpricingmarketplacedemand-forecastingcausal-inference - Machine LearningHardModel answerCard Transaction Triage and Fraud Rule Design
Approve or decline two flagged transactions, then design a rule-based fraud strategy from scratch, covering metrics, cold-start thresholds, and adversarial adaptation.
Machine Learningfraud detectionrisk strategyexperiment designfeature engineering - Machine LearningMediumModel answerBuild an Evaluation Platform for a Tool-Using AI Agent
Design a safe, repeatable harness that runs a tool-calling agent offline, grades its trajectories, and gates releases without touching production state.
Machine Learningagent-evaluationml-infrastructurellm-opssystem-design - Machine LearningMediumModel answerGuard a Coding Assistant Against Confidential Code Exposure
Design a safety pipeline that stops an LLM-powered coding tool from leaking secrets, internal credentials, or proprietary source code at training and inference time.
Machine Learningllmsafetyml-systemsinformation-security - Machine LearningMediumModel answerChoosing and Defending Metrics for a Rare-Class Abuse Detector
Pick, justify, and stress-test evaluation metrics for an imbalanced fake-account classifier, wiring thresholds to asymmetric action costs and biased labels.
Machine Learningimbalanced-classificationprecision-recallthreshold-tuningcalibration - Machine LearningMediumModel answerOOD Guardrails for a Domain-Restricted Financial Chatbot
Design a low-latency pipeline that classifies chatbot queries as in-domain or out-of-domain, routes them safely, and stays calibrated as traffic drifts.
Machine Learningood-detectionllm-guardrailsragdrift-monitoring - Machine LearningMediumModel answerWrite a PyTorch Training Loop from Scratch
Implement a complete per-batch training loop in PyTorch, covering device placement, gradient management, and per-epoch loss tracking.
Machine Learningpytorchdeep-learningtraining-loopgradient-descent - Machine LearningMediumModel answerTemperature Data: Stats, Regression, and Greedy Feature Selection
Given daily temperature readings for NYC and several towns, compute variability stats, fit linear regressions, and select five predictors via greedy forward search.
Machine Learningpandasnumpylinear-regressionfeature-selection - Machine LearningHardModel answerBuild a Click Prediction System for Job Recommendations
Design an ML system that predicts job click probability using member profiles, job attributes, and behavior logs to power ranking at serving time.
Machine Learningml-system-designrankingembeddingsdata-leakage - Machine LearningHardModel answerBuild a RAG-Powered Voice Assistant with Grounding Guarantees
Design a retrieval-augmented voice assistant that answers from a trusted knowledge base under a 500ms latency budget while minimizing hallucinations.
Machine LearningRAGLLMsystem-designvoice - Machine LearningMediumModel answerWhy L1 Regularization Zeros Out Coefficients but L2 Does Not
Compare Lasso and Ridge penalties on a 500-feature regression model, explaining mathematically and geometrically why one produces sparse weights and the other does not.
Machine Learningregularizationlassoridgelinear-regression - Machine LearningMediumModel answerBuilding a City-Specific Sports News Feed with LLM Summaries
Design an ML system that ingests sports content, generates grounded summaries for local audiences, and personalizes delivery at scale.
Machine Learningml-system-designragnlppersonalization - Machine LearningMediumModel answerAdd Positional Encoding to a Transformer Language Model
Implement sinusoidal or learned positional encodings in PyTorch, explain the math and tensor shapes, integrate them into a Transformer LM, and diagnose what breaks without them.
Machine Learningtransformerspositional-encodingpytorchlanguage-models - Machine LearningHardModel answerModel Optimization and Distributed Training Parallelism Strategies
Explain key techniques for reducing training and inference cost, then compare how tensor parallelism and pipeline parallelism split work across GPUs.
Machine Learningdeep-learningdistributed-traininginference-optimizationLLMs - Machine LearningMediumModel answerValidating a Probability of Default Model End to End
Walk through every stage of PD model validation — data checks, discrimination, calibration, stability, and backtesting — explaining the key metrics and their limitations.
Machine Learningcredit-riskmodel-validationclassification - Machine LearningMediumModel answerHow Neural Networks Work and Learn from Data
Explain the structure and computation of a neural network, the role of non-linear activations, and how parameters are learned through loss minimization and backpropagation.
Machine Learningneural-networksdeep-learningfundamentals