<doocs>1288.Remove Covered Intervals_1.py
def removeCoveredIntervals( intervals: List[List[int]]) -> int:
    intervals.sort(key=lambda x: (x[0], -x[1]))
    cnt, pre = 1, intervals[0]
    for e in intervals[1:]:
        if pre[1] < e[1]:
            cnt += 1
            pre = e
    return cnt
def sample_funcname ( var_0 : List [ List [ int ] ] ) -> int :
    var_0.sort ( var_4 = lambda var_5 : ( var_5 [ 0 ] , - var_5 [ 1 ] ) )
    var_8 , var_9 = 1 , var_0 [ 0 ]
    for var_10 in var_0 [ 1 : ] :
        if var_9 [ 1 ] < var_10 [ 1 ] :
            var_8 += 1
            var_9 = var_10
    return var_8
