O(N) solution
\nclass Solution:\n    def findLengthOfLCIS(self, nums: List[int]) -> int:\n        maxLen = count = 1\n        for i in range(len(nums) - 1):\n            if n
```\nclass Solution:\n    def findLengthOfLCIS(self, nums: List[int]) -> int:\n        maxLen = count = 1\n        for i in range(len(nums) - 1):\n            if nums[i] < nums[i + 1]:\n                count += 1\n            else:\n                count = 1\n                \n            maxLen = max(count, maxLen)\n                \n        return maxLen\n```
['Python', 'Python3']