Short Python Solution


  • 1
    L

    '''
    def moveZeroes(self, nums):

        for i in range(nums.count(0)):
            nums.remove(0)
            nums.append(0)
    

    '''


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.