Skip to content

Commit 7ca6e94

Browse files
author
Saidev
committed
Added 1 more test case for "26. Remove Duplicates from Sorted Array"
1 parent 0e6a5d7 commit 7ca6e94

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

02-Remove Duplicates from Sorted Array.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Output: 2, nums = [1,2,_]
66
Explanation: Your function should return k = 2, with the first two elements of nums being 1 and 2 respectively.
77
It does not matter what you leave beyond the returned k (hence they are underscores).
8+
89
Example 2:
910
1011
Input: nums = [0,0,1,1,1,2,2,3,3,4]
@@ -23,4 +24,7 @@ def removeDuplicates(nums):
2324
return a+1
2425

2526
nums = [1, 1, 2]
27+
print(removeDuplicates(nums))
28+
29+
nums = [0,0,1,1,1,2,2,3,3,4]
2630
print(removeDuplicates(nums))

0 commit comments

Comments
 (0)