Beginners Python Code
Code\n\nclass Solution:\n    def findLengthOfLCIS(self, nums: List[int]) -> int:\n        n = len(nums)\n        ans = 1\n        curr_len = 1\n        for i in
# Code\n```\nclass Solution:\n    def findLengthOfLCIS(self, nums: List[int]) -> int:\n        n = len(nums)\n        ans = 1\n        curr_len = 1\n        for i in range(1,n):\n            if nums[i] > nums[i-1]:\n                curr_len = curr_len + 1\n                ans = max(ans,curr_len)\n            else:\n                curr_len = 1\n        return ans\n        \n```
['Python3']