Easy c++ 2 lines
Always set r and c as 1 cause subsequence length can\'t be smaller than 1.\n\nint findLengthOfLCIS(vector<int>& nums) {\n        int r=1,c=1;\n        for(int i
Always set r and c as 1 cause subsequence length can\'t be smaller than 1.\n```\nint findLengthOfLCIS(vector<int>& nums) {\n        int r=1,c=1;\n        for(int i=1;i<nums.size();i++)\n            r=max(r,nums[i]>nums[i-1]?++c:c=1);\n        return r;\n    }\n```
[]