class Solution: def findMissingRanges(self, nums: List[int], lower: int, upper: int) -> List[List[int]]: res=[] for a in nums + [upper + 1]: if a > lower: res.append([lower, a - 1]) lower = a + 1 return res This is the best solution I have seen. Thanks for the video
I love your videos and I really appreciate them
I really hope I get into FAANG, im seriously putting in the work
class Solution:
def findMissingRanges(self, nums: List[int], lower: int, upper: int) -> List[List[int]]:
res=[]
for a in nums + [upper + 1]:
if a > lower:
res.append([lower, a - 1])
lower = a + 1
return res
This is the best solution I have seen. Thanks for the video
That's the best I've ever seen! 😁
Do you recommend Facebook tagged sorted by frequency period, or sorted by frequency over the past 'x' months? THanks for the video by the way!
Thanks
Could you please NOT do premium questions. If you do, please let us know the reason - like you are solving meta problem list or something?
Go read the title of this channel