HTMLify

LeetCode - Remove Element - Python
Views: 7 | Author: abh
class Solution:
    def removeElement(self, nums: List[int], val: int) -> int:
        while val in nums:
            nums.remove(val)
        return len(nums)

Comments