update 26
This commit is contained in:
@@ -10,7 +10,7 @@ class Solution:
|
|||||||
k = 1
|
k = 1
|
||||||
for i in range(1, len(nums)):
|
for i in range(1, len(nums)):
|
||||||
if nums[i] != nums[i - 1]:
|
if nums[i] != nums[i - 1]:
|
||||||
num[k] = nums[i]
|
nums[k] = nums[i]
|
||||||
k += 1
|
k += 1
|
||||||
|
|
||||||
return k
|
return k
|
||||||
|
|||||||
Reference in New Issue
Block a user