Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit b81ccd5

Browse files
Update and rename array-remove-duplicate-inplace.py to remove_dups_inplace.py
1 parent 2f1db3f commit b81ccd5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

arrays_and_strings/array-remove-duplicate-inplace.py renamed to arrays_and_strings/remove_dups_inplace.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# -*- coding: utf-8 -*-
33
# author: bt3gl
44

5-
### Remove Duplicates from Sorted Array in-place
65

76

87
def remove_duplicates(nums: list[int]) -> int:
@@ -23,10 +22,3 @@ def remove_duplicates(nums: list[int]) -> int:
2322

2423
return dup_i - arr_i - 1, nums
2524

26-
27-
28-
if __name__ == "__main__":
29-
30-
31-
nums = [0, 0, 1, 1, 1, 2, 2, 3, 3, 4]
32-
assert(remove_duplicates(nums) == (5, [0, 1, 2, 3, 4, '_', '_', '_', '_', '_']))

0 commit comments

Comments
 (0)