35 ms·
Next would probably be a while loop using the same setup, then a for loop with the counter reversed (incrementing rather than decrementing), and seeing how the
by crooked-v 8y ago
Next would probably be a while loop using the same setup, then a for loop with the counter reversed (incrementing rather than decrementing), and seeing how the assembly differs in each case. If you were using C++ then next after that would be using an iterator on a vector and mostly taking away direct control of the counter in the process.