Tap here to switch tabs
Problem
Submissions

Problem: Count Strictly Increasing Subarrays

Try to solve the Count Strictly Increasing Subarrays problem.

Statement

Given an array of integers nums, return the total number of strictly increasing subarrays.

A subarray is defined as a contiguous sequence of elements within an array. A subarray is strictly increasing if each element is strictly greater than the element immediately preceding it. Any subarray consisting of a single element of length 11 is strictly increasing.

Constraints:

  • 1≤1 \leq nums.length ≤105\leq 10^5

  • 1≤1 \leq nums[i] ≤106\leq 10^6

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count Strictly Increasing Subarrays

Try to solve the Count Strictly Increasing Subarrays problem.

Statement

Given an array of integers nums, return the total number of strictly increasing subarrays.

A subarray is defined as a contiguous sequence of elements within an array. A subarray is strictly increasing if each element is strictly greater than the element immediately preceding it. Any subarray consisting of a single element of length 11 is strictly increasing.

Constraints:

  • 1≤1 \leq nums.length ≤105\leq 10^5

  • 1≤1 \leq nums[i] ≤106\leq 10^6