comefrom: <doocs>0905.Sort Array By Parity_1.py
code: def sortArrayByParity( nums: List[int]) -> List[int]:
      i, j = 0, len(nums) - 1
      while i < j:
          if nums[i] & 1:
              nums[i], nums[j] = nums[j], nums[i]
              j -= 1
          else:
              i += 1
      return nums
masked: def sample_funcname ( var_0 : List [ int ] ) -> List [ int ] :
      var_4 , var_7 = 0 , len ( var_0 ) - 1
      while var_4 < var_7 :
          if var_0 [ var_4 ] & 1 :
              var_0 [ var_4 ] , var_0 [ var_7 ] = var_0 [ var_7 ] , var_0 [ var_4 ]
              var_7 -= 1
          else :
              var_4 += 1
      return var_0
  