comefrom: <doocs>0442.Find All Duplicates in an Array_1.py
code: def findDuplicates( nums: List[int]) -> List[int]:
      for i in range(len(nums)):
          while nums[i] != nums[nums[i] - 1]:
              nums[nums[i] - 1], nums[i] = nums[i], nums[nums[i] - 1]
      return [v for i, v in enumerate(nums) if v != i + 1]
masked: def sample_funcname ( var_0 : List [ int ] ) -> List [ int ] :
      for var_5 in range ( len ( var_0 ) ) :
          while var_0 [ var_5 ] != var_0 [ var_0 [ var_5 ] - 1 ] :
              var_0 [ var_0 [ var_5 ] - 1 ] , var_0 [ var_5 ] = var_0 [ var_5 ] , var_0 [ var_0 [ var_5 ] - 1 ]
      return [ var_7 for var_5 , var_7 in enumerate ( var_0 ) if var_7 != var_5 + 1 ]
  