LearnPy Hub
← Arena
IntermediateRating 1100

Longest Increasing Run

Find the length of the longest contiguous part of the array where every element is strictly greater than the one before it.

Input

First line n, second line n integers.

Output

The length of the longest run.

Sample 1

Input
5
1 2 2 3 4
Output
3

Sample 2

Input
6
5 4 3 2 1 0
Output
1
solution.py
Output appears here
Longest Increasing Run · Python Arena problem · LearnPy Hub