Given an unsorted array of integers nums, the goal is to find the length of the longest continuous increasing subsequence (subarray). The subsequence must be strictly increasing, meaning for every element at index i, nums[i] < nums[i + 1] must hold true for the duration of the subsequence.
Constraints:
- Array length:
1 <= nums.length <= 10^4 - Element values:
-10^9 <= nums[i] <= 10^9
Example 1:
Input: nums = [1,3,5,4,7]
Output: 3
Explanation: [1,3,5] is the longest continuous increasing subsequence.
Example 2:
Input: nums = [2,2,2,2,2]
Output: 1
Explanation: Must be strictly increasing, so the longest is any single element [2].