Trapping Rain Water 💦 (Leetcode 42)
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Leetcode 2393. Count Strictly Increasing Subarrays Problem You are given an array nums consisting of positive integers. Return the number of subarrays of nums that are in strictly increasing order. A subarray is a contiguous part of an array. Example 1:… Read More »Count Strictly Increasing Subarrays
Leetcode 946. Validate Stack Sequences
Leetcode 994. Rotting Oranges
Leetcode 724. Find Pivot Index
Leetcode 525. Contiguous Array
Leetcode 53. Maximum Subarray with Kadane’s Algorithm
Leetcode 325. Maximum Size Subarray Sum Equals k
Leetcode 713. Subarray Product Less Than K
Leetcode 523. Continuous Subarray Sum
Leetcode 560. Subarray Sum Equals K