i = 1
while(len(nums) > i):
if(nums[i-1] == nums[i]):
i += 1
when I run the code, the Notice: index out of range. But where?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.