Education + Jobs Hiring Website - 2025
0 like 0 dislike
2,693 views

in Online Assessments by Expert (145,060 points) | 2,693 views

1 Answer

0 like 0 dislike
Best answer
Given an array find the number of good subarrays.

Good subarray is an array such that when it is removed rest of the array is strictly increasing

-> [1 2 3 4 0 5]

-> [0] ; [0,5] ; [4 0] ; [4 0 5 ] ; [3 4 0] ; [3 4 0 5] ; [2 3 4 0] ; [2 3 4 0 5] ; [1 2 3 4 0] ; [1 2 3 4]

-> 10

Vid Solution.->
by Expert (145,060 points)
edited by