Skip to content

Commit 0e6a5d7

Browse files
author
Saidev
committed
Fixed return value for "02-Remove Duplicates from Sorted Array.py"
1 parent b475700 commit 0e6a5d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

02-Remove Duplicates from Sorted Array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def removeDuplicates(nums):
2020
nums[a+1] = nums[b]
2121
a += 1
2222
b += 1
23-
return a
23+
return a+1
2424

2525
nums = [1, 1, 2]
2626
print(removeDuplicates(nums))

0 commit comments

Comments
 (0)