All Questions
Ai Coding And Product Systems easy

Your AI code review system receives a 3,000-line pull request that touches 40 files. How should it feed the changes to the model?

  1. A Send the entire diff in one prompt so the model can see every cross-file relationship at once.
  2. B Review only the first file in the diff, since large pull requests are usually mechanical changes.
  3. C Split the diff into fixed 500-line windows regardless of file or function boundaries for evenness.
  4. D Chunk by file or hunk with nearby code context, adding related definitions as needed.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions