Remix.run Logo
ikurei 2 days ago

I think they meant that XOR avoids the overflow risk, whereas doing the sum of the array to figure out which number could cause an overflow.

jonathrg 2 days ago | parent [-]

(wrapping) overflow doesn't affect the final result.