Python O(n) Solution - O(1) Space Complexity
\nclass Solution:\n    def findLengthOfLCIS(self, nums: List[int]) -> int:\n        if not nums:\n            return 0\n        \n        cur_len = 1\n        m
```\nclass Solution:\n    def findLengthOfLCIS(self, nums: List[int]) -> int:\n        if not nums:\n            return 0\n        \n        cur_len = 1\n        max_len = 1\n        \n        for i in range(1,len(nums)):\n            if nums[i] > nums[i-1]:\n                cur_len += 1\n            else:\n                max_len = max(max_len,cur_len)\n                cur_len = 1\n        \n        return max(max_len,cur_len)\n```
['Python', 'Python3']