My answer in python is
def moveZeroes(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ b = 0 for i in nums: if i == 0: nums.remove(i) b += 1 nums = nums + *b
However, when I try to submit, it shows the "wrong answer". I'm sure I successfully updated the array. I don't know why this problem would happen. Any ideas?