Why the complicated if statements to check the sign? Just let the number overflow. Would be functionaly the same, and result in much prettier code.
Why the complicated if statements to check the sign? Just let the number overflow. Would be functionaly the same, and result in much prettier code.
Yeah, but in the bottom one, the people are packed infinitely dense, which will probably cause the train to derail, saving infinitely more people.