class Solution:
def isCovered(self, ranges, left, right):
i=left
while i <=right:
find=False
for range in ranges:
if range[0]<=i and range[1]>=i:
i=range[1]+1
find=True
break
if find is False:
return False
return True
leetcode 1893
最新推荐文章于 2022-04-29 14:07:12 发布