c++ counting
Intuition\n Describe your first thoughts on how to solve this problem. \n\n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Tim
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\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)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    int findLengthOfLCIS(vector<int>& nums) {\n        int count =1;\n        int maxi=INT_MIN;\n        int n=nums.size();\n        for(int i=0;i<n-1;i++)\n        {\n            if(nums[i]<nums[i+1] )\n            {\n                count++;\n                maxi=max(maxi,count);\n            }\n            else\n            {\n                count=1;\n            }\n        }\n        if(maxi==INT_MIN)\n        {\n            return 1;\n        }\n        return maxi;\n    }\n};\n```
['C++']