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
- Tap Copy prompt above.
- Replace the [bracketed] parts with your own details.
- Paste it into chatgpt, claude.