JS faster than 100% O(n)
\n\n\nvar findLengthOfLCIS = function(nums) {\n    let output = 0;\n    let count = 0;\n\n    for (let i = 0; i < nums.length; i++) {\n        if (!count || num
![image](https://assets.leetcode.com/users/images/2abfa80c-dc20-4da7-8002-ca5d2ad5a50f_1661569790.2926805.png)\n\n```\nvar findLengthOfLCIS = function(nums) {\n    let output = 0;\n    let count = 0;\n\n    for (let i = 0; i < nums.length; i++) {\n        if (!count || nums[i] > nums[i - 1]) {\n            count++;\n        } else {\n            output = Math.max(output, count);\n            count = 1;\n        }\n    }\n    \n    return Math.max(output, count);\n};\n```
['JavaScript']