Python, 'Anchor' Approach
Let's remember the smallest value prev in our current chain, and the length count of the current chain.\n\n\ndef findLengthOfLCIS(self, nums):\n    prev = float
Let's remember the smallest value `prev` in our current chain, and the length `count` of the current chain.\n\n```\ndef findLengthOfLCIS(self, nums):\n    prev = float('-inf')\n    ans = count = 0\n    for x in nums:\n        if x > prev:\n            count += 1\n            ans = max(ans, count)\n        else:\n            count = 1\n        prev = x\n    return ans\n```
[]