Python3 solution
\'\'\'\n\nclass Solution:\n    def findLengthOfLCIS(self, nums: List[int]) -> int:\n        msf = 0  # maxim so far\n        meh = 1  # maxim ending here\n     
\'\'\'\n```\nclass Solution:\n    def findLengthOfLCIS(self, nums: List[int]) -> int:\n        msf = 0  # maxim so far\n        meh = 1  # maxim ending here\n        n = len(nums)\n        if n == 1: return 1\n        last = nums[0]\n        for i in range(1, n):\n            if nums[i] > last:\n                last = nums[i]\n                meh += 1\n            else:\n                meh = 1\n                last = nums[i] \n            if msf < meh:\n                msf = meh\n        return msf\n                \n```\n\'\'\'
['Python', 'Python3']