leetcode907专题

LeetCode907. Sum of Subarray Minimums——单调栈

文章目录 一、题目二、题解 一、题目 Given an array of integers arr, find the sum of min(b), where b ranges over every (contiguous) subarray of arr. Since the answer may be large, return the answer modulo 109