4 ms·
I've had great success with this solution: for (size_t i = n; i > 0; ) { i--; ... } I'd have gone with "i-- > 0" if I wasn't feeling o
by SamReidHughes 11y ago
I've had great success with this solution:
for (size_t i = n; i > 0; ) {
i--;
...
}
I'd have gone with "i-- > 0" if I wasn't feeling out the consequences of trying to avoid all integer overflow, though.