Skip to content

Commit e32719e

Browse files
authored
remove unnecessary line
1 parent b1cde0a commit e32719e

File tree

1 file changed

+1
-1
lines changed
  • Algorithms/Easy/26_RemoveDuplicatesFromSortedArray

1 file changed

+1
-1
lines changed

Algorithms/Easy/26_RemoveDuplicatesFromSortedArray/Solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ def removeDuplicates(self, nums: List[int]) -> int:
55
# otherwise go forward
66

77
i = 1
8+
89
while i < len(nums):
910
if nums[i - 1] == nums[i]:
1011
nums.pop(i - 1)
1112
else:
1213
i += 1
1314

14-
1515
return len(nums)

0 commit comments

Comments
 (0)