Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
areyousure
· 5y ago · 0 comments
After the first iteration of the loop (and every other one too), A[i] is the maximum of the array, not the minimum.
Comments
[–]
ac42
5y ago
Oh crap, now I see it. Thanks!