bugger.
THE PRACTICE ROOM

Find your next debugging challenge.

Debug applied AI systems with simulated traces and objective checks, or explore source-backed bugs and original interview practice. Try a guest exercise in your browser. Sign in to save and submit your repairs.

The bug collection 94

A small codebase. A real problem. Your next breakthrough.

Hand-curated, never generated at random
Showing 1–10 of 94 challenges10 per page
01

The ticks that forget the past

A chart deduplicates timestamps but puts dates before the epoch after modern ones.

JavaScriptLanguage semanticsRegression testing
JSJavaScripteasy ~15 min
02

The fraction that moves a day

Subtracting less than a day unexpectedly moves a calendar reminder to yesterday.

JavaScriptLanguage semanticsRegression testing
JSJavaScripteasy ~15 min
03

The year that rewrites the month

Changing only the year unexpectedly moves an ordinary date to the end of its month.

Real incidentsCalendar arithmeticRegression testing
JSJavaScripteasy ~15 min
04

The cache that forgets

A cached result gets computed again. Only some values trigger it.

CachingState
PyPythoneasy ~15 min
05

The counts that crash the import

An importer skips malformed text but crashes on another kind of invalid count.

CollectionsStateRegression testing
PyPythoneasy ~15 min
06

The preference that loses its place

Equal-priority choices change order even though the caller supplied a preference.

CollectionsStateRegression testing
PyPythoneasy ~15 min
07

The length that counts letters

An upload advertises fewer bytes than its UTF-8 payload contains.

Requests & BoundariesUnicodeByte lengths
PyPythoneasy ~15 min
08

The charset without a value

A malformed metadata flag becomes a boolean that crashes string processing.

Requests & BoundariesParsingMissing values
PyPythoneasy ~15 min
09

The group that loses null

Grouping keeps a missing-value group, but asking how many groups exist fails.

DataMissing valuesContracts
PyPythoneasy ~20 min
10

The unlabeled shard that loses its rows

A molecular dataset inspector reports no samples when a shard has features and identifiers but no labels.

MLDeepChemDataset shapes
PyPythoneasy ~15 min

A path to better instincts

Start small. Build confidence. Follow a language from easy to hard.

Checking your session…

Py

Python debugging

56 bugs

Trace state, imports, async work, and data handling.

View all 56 challenges
  1. The cache that forgetseasy
  2. The counts that crash the importeasy
  3. The preference that loses its placeeasy
  4. The length that counts letterseasy
  5. The charset without a valueeasy
  6. The group that loses nulleasy
  7. The unlabeled shard that loses its rowseasy
  8. The last batch that changed the losseasy
  9. The median that chooses only one middleeasy
  10. The forecast interval that excludes its edgeseasy
  11. The retriever that ranks the wrong document firsteasy
  12. Implement reset and step in LineWorldeasy
  13. Reward a warehouse deliveryeasy
  14. Headers on the movemedium
  15. The payload that became many valuesmedium
  16. The copy that moves the originalmedium
  17. The query with two separatorsmedium
  18. The fragment left behindmedium
  19. The address with two meaningsmedium
  20. The hostname that changes shapemedium
  21. The path that starts at a sharemedium
  22. The brackets that hide a hostmedium
  23. The checkout key shared by two customersmedium
  24. The batch that retries successful messagesmedium
  25. The selection that indexes missing targetsmedium
  26. The metric that forgets between readsmedium
  27. The collision event in both datasetsmedium
  28. The scaler that learns from the test setmedium
  29. The filtered callback that survives removalmedium
  30. The backtest step that creates one fold too manymedium
  31. The agent that performs an action twicemedium
  32. The evaluation score that changes with batch sizemedium
  33. Compare policies on held-out scenariosmedium
  34. Resolve simultaneous moves in a shared aislemedium
  35. Isolate OpenEnv returns-desk sessionsmedium
  36. Grade the committed outcomemedium
  37. The missing hourhard
  38. The shutdown that never happenedhard
  39. The connection that trusted too muchhard
  40. The permit that skips the queuehard
  41. The response that never finisheshard
  42. The write that half happenedhard
  43. The update that evicts too muchhard
  44. The upload that cannot replayhard
  45. The proxy secret in the tunnelhard
  46. The window that keeps the gaphard
  47. The lock that blocks every instancehard
  48. The archive that walks outsidehard
  49. The rejected basket that consumes inventoryhard
  50. The old receipt that deletes a new deliveryhard
  51. The graph batch that connects the wrong moleculeshard
  52. The checkpoint that remembers only half the metrichard
  53. The optimizer state restored to the wrong ownerhard
  54. The strided gradient counted through two aliaseshard
  55. Recover a tool call after a lost responsehard
  56. Decide whether a policy is ready for a canaryhard
JS

JavaScript debugging

14 bugs

Trace dates, text, shared state, and asynchronous work.

View all 14 challenges
  1. The ticks that forget the pasteasy
  2. The fraction that moves a dayeasy
  3. The year that rewrites the montheasy
  4. The name that counts twicemedium
  5. The midnight that stays behindmedium
  6. The search that starts before its offsetmedium
  7. The parser that makes no progressmedium
  8. The feed page that skips tied postsmedium
  9. The friend suggestion counted more than oncemedium
  10. The pull that runs twicehard
  11. The workers that slip the limithard
  12. The defaults that reach the prototypehard
  13. The removed reaction that returnshard
  14. The feed merge that spends unread cursorshard
TS

TypeScript debugging

14 bugs

Debug typed data, async flows, and runtime assumptions.

View all 14 challenges
  1. The default that never runseasy
  2. The first key that is not a keyeasy
  3. The Map key that becomes a propertymedium
  4. The object that never stays the samemedium
  5. The prerelease that misses the rangemedium
  6. The token that opts into trustmedium
  7. The aliases that repeat the workmedium
  8. The URL that escapes its originmedium
  9. The deleted file that comes backmedium
  10. The connection that starts twicehard
  11. The promise that arrives too latehard
  12. The deployment that skips its checkshard
  13. The rebuild that leaves a stale dependenthard
  14. The build that claims edits it never readhard

Learning series

Follow a focused track from a small reproduction to deeper stateful bugs.

RL environments

Python

Build an episode, serve a stateful tool environment, check its rewards, and prepare a rollout.

2 easy4 medium2 hard
Lesson outline 8
  1. 01Implement reset and step in LineWorldeasy
  2. 02Reward a warehouse deliveryeasy
  3. 03Compare policies on held-out scenariosmedium
  4. 04Resolve simultaneous moves in a shared aislemedium
  5. 05Isolate OpenEnv returns-desk sessionsmedium
  6. 06Grade the committed outcomemedium
  7. 07Recover a tool call after a lost responsehard
  8. 08Decide whether a policy is ready for a canaryhard

ML: debug to contribute

Python

Prepare for DeepChem, NumFOCUS / PyTorch-Ignite and ML4SCI contributions through small Python investigations. Includes historical bug adaptations and original practice.

Organizations & contribution guide

2 easy4 medium
Lesson outline 6
  1. 01The unlabeled shard that loses its rowseasy
  2. 02The last batch that changed the losseasy
  3. 03The selection that indexes missing targetsmedium
  4. 04The metric that forgets between readsmedium
  5. 05The collision event in both datasetsmedium
  6. 06The scaler that learns from the test setmedium

Python incident investigations

Python

Follow real failures from missing groups and ambiguous addresses to ownership and containment.

1 easy4 medium3 hard
Lesson outline 8
  1. 01The group that loses nulleasy
  2. 02The address with two meaningsmedium
  3. 03The hostname that changes shapemedium
  4. 04The path that starts at a sharemedium
  5. 05The brackets that hide a hostmedium
  6. 06The window that keeps the gaphard
  7. 07The lock that blocks every instancehard
  8. 08The archive that walks outsidehard

Company-style bug-fix interviews

Mixed languages

Original Amazon-, Meta- and Microsoft-style practice: diagnose broken code, repair it and check regressions. No built-in AI assistant.

4 medium2 hard
Lesson outline 6
  1. 01The checkout key shared by two customersmedium
  2. 02The batch that retries successful messagesmedium
  3. 03The feed page that skips tied postsmedium
  4. 04The deleted file that comes backmedium
  5. 05The removed reaction that returnshard
  6. 06The deployment that skips its checkshard

Advanced company interviews

Mixed languages

Original Amazon-, Meta- and Microsoft-style investigations across transactions, queues, graphs and concurrent updates. No AI assistant is provided.

1 medium5 hard
Lesson outline 6
  1. 01The friend suggestion counted more than oncemedium
  2. 02The rejected basket that consumes inventoryhard
  3. 03The old receipt that deletes a new deliveryhard
  4. 04The feed merge that spends unread cursorshard
  5. 05The rebuild that leaves a stale dependenthard
  6. 06The build that claims edits it never readhard

Company-style bug-fix interviews

Read existing code, reproduce a bug, make a focused repair, and test the edge cases. No AI assistant is provided.

Original Amazon-, Meta-, and Microsoft-style practice questions. These are independent exercises, not official company interview questions.

Frontier ML interview guide
↳

This is about understanding, not speed.
No leaderboard. No ticking clock. Just you, the evidence, and a bug worth finding.

How it works