def moveZeroes(nums):
if not nums:
return 0
j = 0
for i in range(len(nums)):
if nums[i]:
nums[j],nums[i] = nums[i],nums[j]
j+=1
def moveZeroes(nums):
if not nums:
return 0
j = 0
for i in range(len(nums)):
if nums[i]:
nums[j],nums[i] = nums[i],nums[j]
j+=1