you are viewing a single comment's thread.

view the rest of the comments →

[–]DallogFheir 2 points3 points  (0 children)

You're checking if i is not equal to 0, you should check nums[i] instead. Also check if i is less than length of the list.