comefrom: <doocs>0435.Non-overlapping Intervals_1.py
code: def eraseOverlapIntervals( intervals: List[List[int]]) -> int:
      intervals.sort(key=lambda x: x[1])
      ans, t = 0, intervals[0][1]
      for s, e in intervals[1:]:
          if s >= t:
              t = e
          else:
              ans += 1
      return ans
masked: def sample_funcname ( var_0 : List [ List [ int ] ] ) -> int :
      var_0.sort ( var_4 = lambda var_5 : var_5 [ 1 ] )
      var_8 , var_9 = 0 , var_0 [ 0 ] [ 1 ]
      for var_10 , var_11 in var_0 [ 1 : ] :
          if var_10 >= var_9 :
              var_9 = var_11
          else :
              var_8 += 1
      return var_8
  