LeetCode 2970 - Count the Number of Incremovable Subarrays I
LeetCode Problem 2970 Difficulty: 🟢 Easy Topics: Array, Two Pointers, Binary Search, Enumeration Solution Problem Understanding The problem asks us to count all subarrays of a given array nums such that if we remove the subarray , the remaining array becomes strictly increasing. A strictly increasing array is one where each element is less than the next element. For example, [1,2,3] is strictly increasing, while [1,2,2] or [3,2,1] are not....