We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55a8322 commit 63e3afcCopy full SHA for 63e3afc
1 file changed
Python/circular-array-loop.py
@@ -42,8 +42,7 @@ def next_index(nums, i):
42
break
43
return True
44
45
- slow = i
46
- val = nums[i]
+ slow, val = i, nums[i]
47
while nums[slow] * val > 0:
48
tmp = next_index(nums, slow)
49
nums[slow] = 0
0 commit comments