mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 03:34:02 +08:00
@ -219,6 +219,7 @@ func removeElement(nums []int, val int) int {
|
|||||||
res++
|
res++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
nums=nums[:res]
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user