comefrom: <doocs>2216.Minimum Deletions to Make Array Beautiful_1.py
code: def minDeletion( nums: List[int]) -> int:
      n = len(nums)
      i = ans = 0
      while i < n - 1:
          if nums[i] == nums[i + 1]:
              ans += 1
              i += 1
          else:
              i += 2
      if (n - ans) % 2:
          ans += 1
      return ans
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_4 = len ( var_0 )
      var_7 = var_5 = 0
      while var_7 < var_4 - 1 :
          if var_0 [ var_7 ] == var_0 [ var_7 + 1 ] :
              var_5 += 1
              var_7 += 1
          else :
              var_7 += 2
      if ( var_4 - var_5 ) % 2 :
          var_5 += 1
      return var_5
  