class Solution:
    def has_increasing_subsequence(self, nums):
        smallest, next_smallest = float('inf'), float('inf')
        for num in nums:
            # if num <= smallest:
            #     smallest = num
            # elif num <= next_smallest:
            #     next_smallest = num
            # else:
            #     return True
            # A second way of doing the same
            smallest = min(smallest, num)
            if smallest < num:
                next_smallest = min(next_smallest, min)
            if next_smallest < num:
                return True
        return False