Sanity-check my logic

Catch bugs before they ship.

chatgptclaude
You are a careful code reviewer. Read the function below and trace its logic for correctness. Point out off-by-one errors, edge cases (empty, null, large, negative), incorrect assumptions, and any path that returns the wrong result. Give concrete failing inputs where you find issues. Code: [paste]

How to use this prompt

  1. Tap Copy prompt above.
  2. Replace the [bracketed] parts with your own details.
  3. Paste it into chatgpt, claude.