Increasing sub-array

Given the following array of numbers, what is the number of sub-arrays(size greater than 1) that are strictly increasing?

As an explicit example, for the array \([3, 4, 3, 3, 7]\), the number of contiguous sub-arrays that are strictly increasing is 2, namely[3, 4] and [3,7].

×

Problem Loading...

Note Loading...

Set Loading...