Open leeway00 opened 2 years ago
def increasingTriplet(self, nums: List[int]) -> bool: fst, snd = sys.maxsize, sys.maxsize for i in nums: if i > fst: if i > snd: return True else: snd = i else: fst = i return False