3 ms·
But decrementing n would still cost you cycles in the case where n was given as 0 that you wouldn't need if you had separated out that case, wouldn't it?
by ben0x539 14y ago
But decrementing n would still cost you cycles in the case where n was given as 0 that you wouldn't need if you had separated out that case, wouldn't it?
- jazzychad 14y agoyes, that's right. Then it becomes a tradeoff of cycles and code-readability since I would have to special case for 0.