LeetCode - 57. Insert Interval

57. Insert Interval

Please keep it simple!

class Solution(object):
    def insert(self, intervals, newInterval):
        """
        :type intervals: List[List[int]]
        :type newInterval: List[int]
        :rtype: List[List[int]]
        """
        s, e = newInterval[0], newInterval[1]
        left, right = [], []
        for i in intervals:
            if i[1]

 

你可能感兴趣的:(LeetCode)