原 leetcode python 27.移除元素

https://leetcode-cn.com/problems/remove-element/description/ 遍历一遍遇到要删除的值跳过,将数组重写一遍,这样的最快的。python class Solution: def removeElement(self, nums, val): """ :type nums: List[int] :type val: in
相关文章
相关标签/搜索