mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2026-11-06 07:29:54 +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