HTMLify
LeetCode - Remove Element - Python
Views: 340 | Author: abh
1 2 3 4 5 | class Solution: def removeElement(self, nums: List[int], val: int) -> int: while val in nums: nums.remove(val) return len(nums) |