Python O(n) greedy
\ndef findLengthOfLCIS(self, nums: List[int]) -> int:\n        max_length = 0\n        cur_length = 0\n        cur_max = float(\'-inf\')\n        for num in num
```\ndef findLengthOfLCIS(self, nums: List[int]) -> int:\n        max_length = 0\n        cur_length = 0\n        cur_max = float(\'-inf\')\n        for num in nums:\n            if num > cur_max:\n                cur_length += 1\n                cur_max = num\n            else:\n                max_length = max(max_length, cur_length)\n                cur_length = 1\n                cur_max = num\n        return max(max_length, cur_length)\n```
['Greedy', 'Python']