<qiyuangong>252_Meeting_Rooms_1.py
def canAttendMeetings( intervals):
    check = []
    for it in intervals:
        check.append((it.start, True))
        check.append((it.end - 1, False))
    check.sort(key=lambda x : x[0])
    count = 0
    for t in check:
        if t[1]:
            count += 1
            if count > 1:
                return False
        else:
            count -= 1
    return True
def sample_funcname ( var_0 ) :
    var_1 = [ ]
    for var_2 in var_0 :
        var_1.append ( ( var_2.start , True ) )
        var_1.append ( ( var_2.end - 1 , False ) )
    var_1.sort ( var_10 = lambda var_11 : var_11 [ 0 ] )
    var_13 = 0
    for var_14 in var_1 :
        if var_14 [ 1 ] :
            var_13 += 1
            if var_13 > 1 :
                return False
        else :
            var_13 -= 1
    return True
