LeetCode/0283_Move_Zeroes.py
def moveZeroes(self, nums: List[int]) -> None:
        """
        Do not return anything, modify nums in-place instead.
        """
        pos = 0
        for i in range(len(nums)):
            if nums[i]!= 0:
                if pos!=i:
                    nums[pos], nums[i] = nums[i], nums[pos]
                pos += 1

        Do not return anything, modify nums in-place instead.
        
Do not return anything, modify nums in-place instead.
Do not return anything modify nums in - place instead .
def moveZeroes(self, nums: List[int]) -> None:
        pos = 0
        for i in range(len(nums)):
            if nums[i]!= 0:
                if pos!=i:
                    nums[pos], nums[i] = nums[i], nums[pos]
                pos += 1
def moveZeroes ( self , nums : List [ int ] ) -> None : pos = 0 for i in range ( len ( nums ) ) : if nums [ i ] != 0 : if pos != i : nums [ pos ] , nums [ i ] = nums [ i ] , nums [ pos ] pos += 1
Do not return anything, modify nums in-place instead.
Do not return anything modify nums in - place instead .
"""
        Do not return anything, modify nums in-place instead.
        """
self
nums
List[int]