python easy solution.
Intuition \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time complexity:\n Add your time complexity here, e.g. O(n) \n\n- 
# Intuition \n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution:\n    def findLengthOfLCIS(self, nums: List[int]) -> int:\n        res = 1\n        temp = 1\n        prev = nums[0]\n        for num in nums:\n            if num > prev:\n                temp += 1\n            else:\n                if temp > res:\n                    res = temp\n                temp = 1\n            prev = num\n        return max(res, temp)\n```
['Python3']