Problem Statement
Find the length of the longest subarray (contiguous elements) where the elements are strictly increasing. Input n and array.
Example
Input:
6 1 2 5 3 4 1
Output:
3
(Subarrays: 1,2,5 length 3. 3,4 length 2. Max is 3)
DEMO-C-32 โข Programming in C
Find the length of the longest subarray (contiguous elements) where the elements are strictly increasing. Input n and array.
Input:
6 1 2 5 3 4 1
Output:
3
(Subarrays: 1,2,5 length 3. 3,4 length 2. Max is 3)
n, array
Max length
Submit runs every public testcase in this browser. Results and code never leave this device.
6 1 2 5 3 4 1
3
4 1 2 2 3
2
7 1 3 2 4 5 6 2
4
8 1 1 1 1 1 1 1 1
1
6 1 2 1 2 3 4
4
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question