Straight-forward and fast Python
```\nclass Solution(object):\n    def findLengthOfLCIS(self, nums):\n        """\n        :type nums: List[int]\n        :rtype: int\n        """\n        if le
```\nclass Solution(object):\n    def findLengthOfLCIS(self, nums):\n        """\n        :type nums: List[int]\n        :rtype: int\n        """\n        if len(nums) < 2:\n            return len(nums)\n        tmp, max_l = 1, 0\n        for i in range(len(nums) - 1):         \n            if nums[i] < nums[i + 1]:\n                tmp += 1\n            else:\n                max_l = max(max_l, tmp)\n                tmp = 1\n        return max(max_l, tmp)
['Python']