3 ms·
After the first iteration of the loop (and every other one too), A[i] is the maximum of the array, not the minimum.
by areyousure 5y ago
After the first iteration of the loop (and every other one too), A[i] is the maximum of the array, not the minimum.
- ac42 5y agoOh crap, now I see it. Thanks!