1ms 99.95% in java very easy code
Code
![94da60ee-7268-414c-b977-2403d3530840_1725903127.9303432.png](https://assets.leetcode.com/users/images/7b9e2b3c-95c0-48a6-aede-4d8189a2c078_1734615916.1553514.png)


# Code
```java []
class Solution {
    public int findLengthOfLCIS(int[] nums) {
        int ans = -1;
        int count = 1;
        for (int i = 0; i < nums.length - 1; i++) {
            if (nums[i] < nums[i + 1]) {
                count++;
            } else {
                ans = Math.max(ans, count);
                count = 1;
            }
        }
        
        return Math.max(ans, count);
    }
}
```
['Java']