practice a little every day — you've got this ♡
ML Interview Problems
Practice 5969 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.
- 5969
- Problems
- 2211
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 61–90 of 510 results
- Machine LearningMediumModel answerGeneralization Gaps and the Mechanics of Transformer Attention
Diagnose and fix overfitting in linear and deep models, then explain self-attention (queries, keys, values, softmax weights) and why and how Transformers inject position information.
Machine Learningoverfittingregularizationtransformersself-attention - Machine LearningHardModel answerDebiasing Click Logs for Ranking: Propensities, IPS, Offline Eval
Design a pipeline that models, estimates and corrects position bias in click-trained feed rankers, then evaluates a new ranker offline using only logged impressions.
Machine Learningposition-biaslearning-to-rankinverse-propensity-scoringcounterfactual-evaluation - Machine LearningMediumModel answerSupport Chatbot: Combining Doc Retrieval and Order Lookups
Design a shopping-support assistant that answers product questions from a document index and checks order data through safe, typed tools, covering routing, guardrails, sampling and evaluation.
Machine Learningllm-agentsragtool-callingguardrails - Machine LearningMediumModel answerFix a Broken Tiny Transformer and Hand-Derive Matmul Gradients
Debug a small decoder-only transformer whose generation is wrong, add a KV cache, then derive and implement a custom matmul autograd op and discuss parallel scans.
Machine Learningpytorchtransformerkv-cacheautograd - Machine LearningMediumModel answerRanking Sponsored Posts in a Feed: Objective, Features, Evaluation
Design a sponsored-post ranking system for a social feed: define the objective, choose features, evaluate offline, and monitor in production under a tight latency limit.
Machine Learningads-rankingcalibrationfeature-engineeringoffline-evaluation - Machine LearningMediumModel answerScoring Property Photos and Predicting Listing Appeal
Design a two-stage ML system that scores listing photos and predicts overall listing appeal to improve ranking and bookings, including targets, features, imbalance, cold start, metrics and fairness.
Machine Learningrankingcomputer-visioncold-startposition-bias - Machine LearningHardModel answerMaximizing a Fixed Linear SVM Through Better Features and Validation
Raise held-out accuracy of a fixed LinearSVC classifier using preprocessing, feature engineering and leak-free tuning, then justify the improvement credibly without touching the test set.
Machine Learninglinear-svmfeature-engineeringcross-validationdata-leakage - Machine LearningHardModel answerRanking Pipelines for Location Suggestions and Push Alerts
Design two ML ranking systems: one that suggests nearby places to a moving mobile user, and one that decides which push notifications to send, order, or suppress.
Machine Learningml-system-designrecommender-systemsrankingonline-serving - Machine LearningHardModel answerBuilding a Permission-Aware Document Q&A Assistant with Citations
Design a retrieval-augmented question-answering assistant over internal company documents, with ML detail on each stage, document-level access control, grounded cited answers and failure handling.
Machine Learningragretrievalrerankingllm-fine-tuning - Machine LearningMediumModel answerPreprocessing a Mixed Tabular Dataset Across Model Families
Design leak-safe preprocessing for zero-heavy counts, skewed money, a binary flag and two collinear measurements, and compare choices for linear, tree and k-NN models.
Machine Learningfeature-engineeringscalingmulticollinearitymissing-data - Machine LearningHardModel answerDesigning a Quality Gate for a Permission-Aware Document Q&A Assistant
Design an offline and online evaluation system for a retrieval-based enterprise assistant, covering retrieval, faithfulness, citations, abstention, access control, freshness and cost.
Machine Learningragllm-evaluationretrieval-metricsllm-as-judge - Machine LearningMediumModel answerReal-Time Risk Scoring for Account Linking and Payments
Design an ML pipeline that scores bank-link attempts, identity checks, and transactions in real time, mapping risk to graded actions while keeping false positives low.
Machine Learningfraud-detectionml-system-designgraph-featuresimbalanced-data - Machine LearningMediumModel answerML System Evaluation, Sequence Architectures, Distribution Drift, and Optimizers
A deep-dive technical interview covering model validation strategies, metrics, sequence model trade-offs (RNNs vs. Transformers), distribution shift detection, and optimizer selection.
Machine Learningevaluation metricssequence modelingdistribution shiftoptimizers - Machine LearningMediumModel answerValidating a Smile Classifier in a Photo Library App
Design a plan to prove a smile detection feature in a photo app works, covering labels, metrics, hard cases, fairness, pipeline tests, rollout and monitoring.
Machine Learningmodel-evaluationground-truthfairnessprecision-recall - Machine LearningMediumModel answerSelf-Information, Log Bases, and Perplexity in Language Models
Define the information content of a token, explain how the log base sets its unit, link it to cross-entropy and perplexity, and spot common mistakes when reading or comparing these numbers.
Machine Learninginformation-theorylanguage-modelingcross-entropyperplexity - Machine LearningMediumModel answerTruncated Sampling from Logits with a Cumulative Probability Cutoff
Write a NumPy function that turns logits into probabilities, keeps the smallest top-ranked set whose mass reaches a threshold p, renormalizes, and draws one token index.
Machine Learningnumpysamplingsoftmaxllm-decoding - Machine LearningMediumModel answerPresent a Production ML Project You Owned, Start to Finish
Describe a machine learning project you led, covering problem, metrics, data, modeling, validation, deployment, your role, results and lessons, in a way a hiring panel can probe.
Machine Learningml-projectleadershipmetricsdeployment - Machine LearningHardModel answerTargeting a Delivery-Fee Promo with an Uplift Model
Design an end-to-end uplift system that picks which 20% of users get a free-delivery offer, covering experiments, modeling, evaluation, budgeted selection, fairness, interference and sequential testing.
Machine Learninguplift-modelingcausal-inferenceexperimentationqini - Machine LearningHardModel answerPredicting B2B SaaS Contract Churn After Quality Incidents
Architect an end-to-end machine learning system to estimate customer renewal risk following service instability, covering feature selection, leakage, model tradeoffs, and decision thresholds.
Machine Learningmachine learningchurn predictionfeature engineeringmodel evaluation - Machine LearningMediumModel answerPriority Inbox and Thread Digests for a Large Webmail Product
Design a low-latency, privacy-preserving system that reorders a user's inbox by importance and attaches faithful LLM-written digests to the most important threads.
Machine Learningml-system-designlearning-to-rankllm-summarizationprivacy - Machine LearningHardModel answerDefining Core Metrics for a Web Threat Detection Classifier
Define and evaluate a primary metric for an automated web threat detection system, balancing user protection, false alarm friction, and ground-truth validation strategies.
Machine LearningMetricsMachine LearningSystem DesignEvaluation - Machine LearningEasyModel answerFive ML Concepts: Gradients, Penalties, Dropout, Similarity, Encoding
Answer five conceptual ML questions covering loss gradients, L1 vs L2 penalties, activations and dropout, cosine vs Euclidean similarity, and encoding high-cardinality categorical features.
Machine Learningloss-functionsregularizationdropoutcosine-similarity - Machine LearningMediumModel answerGroup-Based Policy Optimization for LLM Fine-Tuning vs PPO
Describe how group-relative policy optimization trains a language model from scored samples without a critic, how it compares with PPO-based RLHF, and where it breaks.
Machine Learningreinforcement-learningllmgrpoppo - Machine LearningMediumModel answerDesigning a Ranking and Exploration Pipeline for Fresh Ad Campaigns
Design an ML system that ranks and safely explores ads under one week old with little click or conversion history, while keeping auction pricing, user experience and advertiser pacing intact.
Machine Learningcold-startads-rankingthompson-samplingcalibration - Machine LearningHardModel answerDesigning a Feed Ad Recommendation and Ranking Engine
Architect an end-to-end Machine Learning ad recommendation system for a content feed, balancing ad revenue with user experience, delayed feedback, counterfactual evaluation, and budget pacing.
Machine Learningrecommender-systemsrankingctr-predictionmulti-task-learning - Machine LearningHardModel answerRater Reliability Metrics and Validating an LLM Grader
Explain how to quantify labeler reliability beyond raw agreement, when each metric fails, and how to decide whether an LLM can stand in for human graders.
Machine Learninginter-annotator-agreementcohens-kappakrippendorff-alphallm-as-judge - Machine LearningMediumModel answerWalking Through a Vision-Language Model Build, Start to Finish
Present a vision-language model you built, covering scope, architecture, data, training, modularity, serving latency, and failure modes, with consistent numbers and clear trade-offs.
Machine Learningvision-language-modelsmultimodalllm-traininginference-latency - Machine LearningMediumModel answerImplement a Decoder-Only Autoregressive Transformer
Write PyTorch components for a decoder-only GPT model, specifying tensor shapes and handling causal masking, multi-head attention, and block architecture.
Machine Learningtransformersdeep-learningpytorchnlp - Machine LearningEasyModel answerML Fundamentals: Generalization, Contrastive Embeddings, Attention
Explain how to diagnose and curb overfitting, how contrastive pretraining and its loss shape embeddings, and how a transformer block works.
Machine Learningoverfittingcontrastive-learninginfoncetransformers - Machine LearningMediumModel answerBuilding a Fast Key-Value Cache for LLM Token Generation
Explain and design a per-layer key/value cache for decoder-only LLM generation, covering batching, branching, long contexts, memory and kernel performance, precision, and common correctness bugs.
Machine Learningtransformerskv-cachellm-inferenceattention