Practice
/

Sum of Subarray Minimums

Sum of Subarray Minimums

Given an array of integers, find the sum of the minimum value of every contiguous subarray, modulo 10^9 + 7.

Premium Content

Create a free account, then unlock this problem and the entire premium catalog with a one-time CodeSnatch Premium purchase.

Already have an account with premium access? Sign in to continue.