Login light

https://leetcode-cn.com/problems/remove-element/

class Solution:
    def removeElement(self, nums: List[int], val: int) -> int:
        for k in range(len(nums))[::-1]:
            if nums[k] == val:
                del nums[k]
        return len(nums)