a) for(int i = 100000; i > 0; i--) {}
for(int i = 100000; i > 0; i--) {}
b) for(int i = 1; i < 100001; i++) {}
for(int i = 1; i < 100001; i++) {}
The answer is t
The answer is a (as you probably found out on the website)
I think the reason is that the i > 0 condition for terminating the loop is faster to test.
i > 0