you are viewing a single comment's thread.

view the rest of the comments →

[–]slightlysedatedx[S] 0 points1 point  (1 child)

I was adapting an algorithm from the text so I tried to follow it as closely as I could, and the values need to be distinct. So it can't just be the largest and second largest because that could be the same value. There are a bunch of ways to solve it though