Hacker News new | ask | show | jobs
by areyousure 1714 days ago
After the first iteration of the loop (and every other one too), A[i] is the maximum of the array, not the minimum.
1 comments

Oh crap, now I see it. Thanks!