4 ms·
I had to pause for a second to convince myself that the version relying on integer wrap-around is actually correct. I guess that's the reason most people don't
by jstanley 10y ago
I had to pause for a second to convince myself that the version relying on integer wrap-around is actually correct.
I guess that's the reason most people don't do it: they'd rather waste O(1) space than waste mental effort on trying to save it.
- deleted 10y ago[deleted]