Practice

Every problem and prompt in the library. The company tags count the separate candidate reports of that question, so the most-asked work comes first.

  1. 12A web crawler, then make it concurrent
    hardpython55 min· Anthropic, 16 reports
  2. 21Infection spread on a grid
    hardpython60 min· OpenAI, 10 reports
  3. 11A system that grows in levels (the CodeSignal format)
    hardpython90 min· Anthropic, 4 reports· OpenAI, 2 reports· Airbnb, 1 report
  4. 22A GPU credit ledger with expiring credits
    hardpython60 min· OpenAI, 7 reports
  5. Review a design doc for a batch sampling service
    harddesign review45 min· Anthropic, 7 reports
  6. Why Anthropic, and what you think about AI safety
    mediumvalues story15 min· Anthropic, 6 reports
  7. 23LRU cache, then make it survive a crash
    hardpython60 min· Anthropic, 4 reports· Netflix, 1 report
  8. 24An image pipeline, then make it parallel
    hardpython60 min· Anthropic, 5 reports
  9. 33From stack samples to a trace
    mediumpython45 min· Anthropic, 5 reports
  10. 25Split stays and group stays
    mediumpython60 min· Airbnb, 4 reports
  11. 29Find the duplicate files
    mediumpython40 min· Anthropic, 4 reports
  12. 30Order the tasks
    mediumpython45 min· Netflix, 3 reports· Airbnb, 1 report
  13. 26A key-value cache with a time to live
    mediumpython45 min· Netflix, 3 reports
  14. 36A block allocator for GPU memory
    mediumpython45 min· OpenAI, 3 reports
  15. 55A work queue that survives failures
    hardpython60 min· OpenAI, 3 reports
  16. Safety over revenue, and the stock goes to zero
    hardvalues story15 min· Anthropic, 3 reports
  17. 13Debug a broken miniGPT, then add a KV cache
    hardtorch45 min· OpenAI, 2 reports
  18. 14Matrix multiplication forward and backward (custom autograd)
    mediumtorch40 min· OpenAI, 2 reports
  19. 31Windows over a request log
    mediumpython40 min· Netflix, 2 reports
  20. 41Is the new model better, or did it get lucky?
    mediumpython35 min· OpenAI, 1 report· Airbnb, 1 report
  21. 43An agent harness
    mediumpython45 min· Anthropic, 1 report· OpenAI, 1 report
  22. 44A rate limiter for an LLM API
    mediumpython45 min· OpenAI, 2 reports
  23. 46A probability kit
    mediumpython40 min· Netflix, 2 reports
  24. 48t-tests, p-values and many tests
    mediumpython45 min· Netflix, 1 report· OpenAI, 1 report
  25. 54Count the machines in a tree
    mediumpython60 min· OpenAI, 2 reports
  26. 56A movie billboard that rotates titles by score
    mediumpython45 min· Netflix, 2 reports
  27. 57No repeated titles on the first screen
    mediumpython45 min· Netflix, 2 reports
  28. Design a collaborative prompt playground
    harddesign45 min· Anthropic, 2 reports
  29. Design an ML job scheduler for a shared CPU and GPU cluster
    harddesign45 min· Netflix, 2 reports
  30. 01Scaled dot-product attention (NumPy)
    mediumnumpy40 min· Netflix, 1 report
  31. 04KV cache for incremental decoding (PyTorch)
    hardtorch50 min· Netflix, 1 report
  32. 17Coin change with dollar amounts (dynamic programming)
    mediumpython45 min· Airbnb, 1 report
  33. 34Regions inside regions
    mediumpython45 min· Airbnb, 1 report
  34. 35Redirect chains
    mediumpython45 min· Airbnb, 1 report
  35. 37A fragment that finds one item
    mediumpython45 min· Airbnb, 1 report
  36. 38The best way down a trail park
    mediumpython45 min· Airbnb, 1 report
  37. 40What a request costs
    mediumpython40 min· Airbnb, 1 report
  38. 42A classifier from a model's Yes and No
    mediumpython40 min· Anthropic, 1 report
  39. 47Averages and the central limit theorem
    easypython30 min· Netflix, 1 report
  40. 50Regression from scratch
    mediumpython40 min· Netflix, 1 report
  41. 53Statistics across many nodes
    mediumpython40 min· Anthropic, 1 report
  42. Design a system that finds the interesting images in a huge unlabeled pile
    harddesign45 min· OpenAI, 1 report
  43. Design search ranking for a stays marketplace with no text query
    harddesign45 min· Airbnb, 1 report
  44. Design the feature layer for a homepage ranker with three freshness needs
    harddesign45 min· Netflix, 1 report
  45. Why OpenAI, and how your goals line up with its mission
    mediumvalues story15 min· OpenAI, 1 report
  46. 02Multi-head causal self-attention (PyTorch)
    mediumtorch50 min
  47. 03A GPT from scratch (PyTorch)
    hardtorch65 min
  48. 05Decoding: temperature, top-k, top-p, and a repetition penalty (PyTorch)
    mediumtorch35 min
  49. 06Backprop by hand: a two-layer MLP (NumPy)
    mediumnumpy45 min
  50. 07Reading an A/B test on conversion (Python, no SciPy)
    mediumpython35 min
  51. 08How many users does the test need? (Python, no SciPy)
    mediumpython30 min
  52. 09CUPED: cut the variance of an experiment metric (NumPy)
    mediumnumpy40 min
  53. 10SQL window functions (SQLite)
    mediumsql40 min
  54. 15Explain and fix AI-generated SQL
    mediumsql40 min
  55. 16LoRA from scratch (PyTorch)
    mediumtorch45 min
  56. 18Ranking metrics and position bias (NumPy)
    mediumnumpy50 min
  57. 19Randomized by city, analyzed by user: clustered standard errors (NumPy)
    hardnumpy45 min
  58. 20When you can't run an A/B test: difference-in-differences (NumPy)
    mediumnumpy40 min
  59. 27NumPy axes, broadcasting and stacks
    easynumpy25 min
  60. 28Tensor shapes for attention (PyTorch)
    easytorch25 min
  61. 32A configuration store that remembers every change
    mediumpython40 min
  62. 39How many GPUs a token service needs
    mediumpython40 min
  63. 45A sharding sheet
    mediumpython45 min
  64. 49Ranking from few ratings
    mediumpython40 min
  65. 51Likelihood and cross entropy from scratch
    mediumpython40 min
  66. 52KL divergence, discrete and continuous
    mediumpython40 min
  67. Candid feedback someone didn't want to hear
    mediumvalues story15 min· Netflix
  68. Design retrieval-assisted guidance for customer support agents
    harddesign45 min· Airbnb
  69. Going out of your way to help someone succeed
    mediumvalues story15 min· Airbnb
  70. Seven estimates a design round needs
    mediumestimation drill25 min
  71. Tell me about a technical disagreement
    mediumvalues story15 min
  72. Triage a quality regression while every dashboard is green
    hardincident case40 min· Anthropic