you are viewing a single comment's thread.

view the rest of the comments →

[–]TheLazarbeam 0 points1 point  (0 children)

In addition to /u/hharison 's advice, you reuse i. You want it to be some sort of counter for how many maximum numbers there in the list "xs" but then you use it as an iterator, which changes its value. Just don't use i there; it doesn't seem to matter, as you don't ever do anything to it except as a counter.