simple cpp solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\no(n)\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\no(1)\n\n# Code\n```\nclass Solution {\npublic:\n    int findLengthOfLCIS(vector<int>& nums) {\n        int ans=0,c=1;\n        for(int i=1;i<nums.size();i++)\n        {\n            if(nums[i]>nums[i-1])\n            {\n                c++;\n            }\n            else\n            {\n                ans=max(ans,c);\n                c=1;\n            }\n        }\n        ans=max(ans,c);\n        return ans;\n    }\n};\n```
['Array', 'C++']