BEST SOLUTION C++
class Solution {\npublic:\n    int findLengthOfLCIS(vector& nums) {\n        int n=nums.size();\n        vectorcnt(n,1);\n        int ans=1;\n        for(int i=
class Solution {\npublic:\n    int findLengthOfLCIS(vector<int>& nums) {\n        int n=nums.size();\n        vector<int>cnt(n,1);\n        int ans=1;\n        for(int i=1;i<n;i++)\n        {\n            if(nums[i]>nums[i-1])\n            {\n                cnt[i]=cnt[i-1]+1;\n            }\n            ans=max(ans,cnt[i]);\n        }\n        return ans;\n    }\n};\n//PLEASE UPVOTE
[]