Writing useful context
Three short headings at the top of a room skip the slow start of every “can you look at this?”.
People can help faster when they know what you are trying to do, what happens instead, and what you have already tried.
# What I’m trying to do Return the indices of two numbers that add up to target. # What happens instead [3, 3] with target 6 returns -1. # What I’ve tried Checked the loop bounds. Added a log on line 8.
Tip: Link to the exact lines you mean — select them in the editor and copy a line link.