Using sliding window of dynamic size easy c++ better than 99% in time
\nclass Solution {\npublic:\n    int findLengthOfLCIS(vector<int>& nums) {\n        int i = 0;\n        int ml = 1;\n        int j = 1;\n        for(j;j<nums.si
```\nclass Solution {\npublic:\n    int findLengthOfLCIS(vector<int>& nums) {\n        int i = 0;\n        int ml = 1;\n        int j = 1;\n        for(j;j<nums.size();j++){\n            if(nums[j]<=nums[j-1]){\n                ml = max(ml,j-i);\n                i= j;\n            }\n        }\n        if(nums[j-1]>nums[i])\n            ml = max(ml,j-i);\n        return ml;\n    }\n};\n```
['C', 'Sliding Window', 'C++']