C++ || EASY TO UNDERSTAND
```\nclass Solution {\npublic:\n    int findLengthOfLCIS(vector& nums) {\n         int ans = 1;\n         int n = nums.size();\n         if(n == 1) return 1;\n 
```\nclass Solution {\npublic:\n    int findLengthOfLCIS(vector<int>& nums) {\n         int ans = 1;\n         int n = nums.size();\n         if(n == 1) return 1;\n        \n         int i=0, j = 1;\n         while( j < n ){\n             if(nums[j] > nums[j-1]){\n                 ans = max(ans, (j - i + 1));\n                 j++;\n             }\n             else{\n                 i = j;\n                 j++;\n             }\n         }\n         return ans;\n    }\n};
['C']