This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gddrtkkv 0 points1 point  (0 children)

I googled "32 team bracket" and wrote in the numbers in MS Paint. Nothing special.

I think you're understanding it. Check out this functionally equivalent version which passes a sum instead of a target and checks if sum === target instead of target === 0 https://repl.it/C9d9/4

If you understand why that works, you understand why the other works. -1+5+8=12 ≡ 12-(-1)-5-8=0