old_contents: __author__ = 'ramsey'
  
  
  def moveZeroes(nums):
      """
      :type nums: List[int]
      :rtype: void Do not return anything, modify nums in-place instead.
      """
      length = len(nums)
      count = 0
      for i, val in enumerate(nums):
          if val == 0:
              nums.pop(i)
              nums.append(0)
          if count == length:
              break
          else:
              count += 1
  
  
  if __name__ == "__main__":
      test_data = [0, 0, 1]
      moveZeroes(test_data)
      print test_data
new_contents: __author__ = 'ramsey'
  
  
  def moveZeroes(nums):
      """
      :type nums: List[int]
      :rtype: void Do not return anything, modify nums in-place instead.
      """
      length = len(nums)
      count = i = 0
      while count < length:
          if nums[i] != 0:
              i += 1
          else:
              nums.pop(i)
              nums.append(0)
          count += 1
  
  
  if __name__ == "__main__":
      test_data = [0, 0, 1]
      moveZeroes(test_data)
      print test_data
subject: add the solution for the algorithm