class Solution:

    def findLengthOfLCIS(self, nums: List[int]) ->int:
        if not nums:
            return 0
        ans = 1
        prev = nums[0]
        c = 1
        for n in nums:
            if n > prev:
                c += 1
            else:
                c = 1
            ans = max(ans, c)
            prev = n
        return ans

f3bd3aa387d814e89725db7c246b59963a9782ab
<mask token>

class Solution:
    <mask token>

class Solution:

    def findLengthOfLCIS(self, nums: List[int]) ->int:
        if not nums:
            return 0
        ans = 1
        prev = nums[0]
        c = 1
        for n in nums:
            if n > prev:
                c += 1
            else:
                c = 1
            ans = max(ans, c)
            prev = n
        return ans
