comefrom: <garvit244>80_1.py
code: def removeDuplicates( nums):
      if len(nums) <= 2:
          return len(nums)
      
      prev, curr = 1, 2
      
      while curr < len(nums):
          if nums[prev] == nums[curr] and nums[curr] == nums[prev-1]:
              curr += 1
          else:
              prev += 1
              nums[prev] = nums[curr]
              curr += 1
      return prev+1
masked: def sample_funcname ( var_0 ) :
      if len ( var_0 ) <= 2 :
          return len ( var_0 )
      var_4 , var_5 = 1 , 2
      while var_5 < len ( var_0 ) :
          if var_0 [ var_4 ] == var_0 [ var_5 ] and var_0 [ var_5 ] == var_0 [ var_4 - 1 ] :
              var_5 += 1
          else :
              var_4 += 1
              var_0 [ var_4 ] = var_0 [ var_5 ]
              var_5 += 1
      return var_4 + 1
  