← All Series
Interview Series
Coding & Debugging Questions
Hands-on PyTorch formats: silent-bug hunts, operator build-and-trace, production incident triage, and the three-phase AI-assisted round. Every fix ships verified code and a runnable test.
Bug HuntBuild & TraceIncident TriageAI-Assisted
114 questions

All Questions
| ID | Title | Companies | Topics | Format | Level |
|---|---|---|---|---|---|
| CD0001 | Debug PyTorch Training Loop Mode A · Bug Hunt 30 Min PyTorch 2.x 4 Silent Bugs Meta’s PyTorch org maintains the training stack behind its ranking and recommendation models, an | Meta, Oracle, Amazon | Loss, NN, Validation | Bug Hunt | Medium |
| CD0002 | Debug Causal Attention Mask Mode A · Bug Hunt 30 Min PyTorch 2.x · FP16 4 Masking Bugs OpenAI’s serving stack runs batched causal attention over left-padded, variable-l | OpenAI, Meta, Google | LLM, Stats, Transformer | Bug Hunt | Medium |
| CD0003 | Multi-Head Attention From Scratch Mode B · Build & Trace 30 Min PyTorch 2.x 4 Tensor Blanks Anthropic's model teams build the transformer blocks behind Claude from first principles, a | Anthropic, DeepSeek, Cohere | LLM, Stats, Transformer | Build & Trace | Hard |
| CD0004 | Rotary Position Embedding Implementation Mode B · Build & Trace 30 Min PyTorch 2.x · FP32/BF16 4 Tensor Blanks Meta's GenAI org develops the Llama model family, whose rotary position | Meta, LG | LLM, Transformer, Validation | Build & Trace | Hard |
| CD0005 | Pretraining NaN Loss Spike Triage Mode C · Incident Triage 30 Min 256x H100 · FSDP · BF16 5 Telemetry Clues Google DeepMind’s training infrastructure team owns the rel | Google DeepMind, Moonshot AI, Meta | LLM, Loss, MLOps | Incident Triage | Hard |
| CD0006 | AI-Assisted KV Cache GQA | Meta, Anthropic, DeepSeek | LLM, Stats, Transformer | AI-Assisted | Hard |
| CD0007 | Debug QA Data Pipeline Mode A · Bug Hunt 30 Min Python 3.10 · json + csv 4 Silent Bugs Scale AI’s annotation pipelines turn human-labeled tasks into training data | Scale AI, Meta, Google | Data Eng, LLM, MLOps | Bug Hunt | Hard |
| CD0008 | Debug Eval Metrics Script Mode A · Bug Hunt 30 Min Python 3 (stdlib only) 4 Silent Bugs In a Google code-comprehension round, the interviewer shares a 42-line pure-Python scorer t | Google, Amazon, Microsoft | Data Eng, Metrics, Validation | Bug Hunt | Medium |
| CD0009 | Logistic Regression From Scratch Mode B · Build & Trace 30 Min NumPy Only 4 Operation Blanks Waymo’s driving-log triage team scores each recorded segment with a small calibrate | Waymo, Google, Amazon | Basics, Loss, VLM | Build & Trace | Hard |
| CD0010 | K-Means From Scratch Mode B · Build & Trace 30 Min NumPy 4 Array Blanks Clustering prototypes show up constantly on Google and Waymo ML teams, and this screen (reported b | Google, Waymo, Meta | Basics, Data Eng, K-Means | Build & Trace | Hard |
| CD0011 | Linear Regression Closed Form Mode B · Build & Trace 30 Min NumPy 1.24+ 4 Linear-Algebra Blanks Amazon’s delivery-time estimation team keeps its baseline deliberately boring | Amazon, Google, Cohere | Basics, Fit, Validation | Build & Trace | Easy |
| CD0012 | Debug Extra Trees Mode A · Bug Hunt 30 Min Python 3 + NumPy 4 Silent Bugs Anthropic’s evaluation tooling keeps repair tasks dependency-free: a 45-line pure NumPy imp | Anthropic, Google, Microsoft | Fit, Trees, Validation | Bug Hunt | Medium |
| CD0013 | KNN Array Query Mode B · Build & Trace 30 Min NumPy 4 Array Blanks A Google data-quality job runs two measurement pipelines that log integer readings of the same qua | Google, Microsoft | Basics, Data Eng, KNN | Build & Trace | Easy |
| CD0014 | Masked Self-Attention | Microsoft, ByteDance/TikTok, Anthropic | NN, Stats, Transformer | Build & Trace | Hard |
| CD0015 | Debug Left-Padded LM Loss Mode A · Bug Hunt 30 Min PyTorch 2.x 4 Silent Bugs On an OpenAI supervised fine-tuning pipeline, the data collator left-pads variable-length chat transcr | OpenAI, Perplexity, Oracle | Data Eng, LLM, Loss | Bug Hunt | Hard |
| CD0016 | Debug Classifier Tests Mode A · Bug Hunt 30 Min PyTorch 2.x 4 Silent Bugs An OpenAI intent-classification service runs on a teammate’s 40-line PyTorch wrapper, TextClassi | OpenAI, Hugging Face, Google | Data Eng, Transformer, Validation | Bug Hunt | Easy |
| CD0017 | Log Forensics Triage | Hudson River Trading, BMW, Google | Data Eng, Infra, MLOps | Incident Triage | Hard |
| CD0018 | Slow Pipeline Triage Mode C · Incident Triage 30 Min Spark SQL · Delta Lake 5 Telemetry Clues A data-ML team on Databricks runs a nightly job, nightly_features, that b | Databricks, Google, Meta | Basics, Data Eng, MLOps | Incident Triage | Hard |
| CD0019 | AI-Assisted Tokenizer Fix Mode D · AI-Assisted 60 Min Python 3.10+ 1 Warm-Up Bug + 3 AI Flaws Inside Meta’s text-preprocessing layer in front of a byte-level text classifier | Meta, Hugging Face, Apple | LLM, Transformer, Validation | AI-Assisted | Medium |
| CD0020 | AI Code Comprehension Mode D · AI-Assisted 60 Min NumPy · Python 3 3 Phases · 3 AI Flaws Picture a retrieval-evaluation codebase on a Google team. An offline har | Google, Meta, Amazon | LLM, Metrics, Retrieval | AI-Assisted | Medium |
Unlock the full answers.
Playbooks, deep dives, follow-up probes, and scorecards are member content.