We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b475700 commit 0e6a5d7Copy full SHA for 0e6a5d7
02-Remove Duplicates from Sorted Array.py
@@ -20,7 +20,7 @@ def removeDuplicates(nums):
20
nums[a+1] = nums[b]
21
a += 1
22
b += 1
23
- return a
+ return a+1
24
25
nums = [1, 1, 2]
26
print(removeDuplicates(nums))
0 commit comments