[C++] Simple solution
Pls upvote if you find this helpful  :)\nKeep the length of each increasing sequence in a variable and one global variable for updating it with all the lengths 
***Pls upvote if you find this helpful  :)***\nKeep the length of each increasing sequence in a variable and one global variable for updating it with all the lengths of increasing sequences.\n```\nclass Solution {\npublic:\n    int findLengthOfLCIS(vector<int>& nums) {\n        if(nums.size()<=1)return nums.size();\n        int answer=1,count=1;\n        for(int i=0;i<nums.size()-1;i++){\n            if(nums[i]<nums[i+1]){\n                count++;\n                answer=max(answer,count);\n            }\n            else{\n                count=1;\n            }\n        }\n        return answer;\n    }\n};\n```
['C', 'C++']