You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: solution/1500-1599/1508.Range Sum of Sorted Subarray Sums/README_EN.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@ tags:
30
30
31
31
<pre>
32
32
<strong>Input:</strong> nums = [1,2,3,4], n = 4, left = 1, right = 5
33
-
<strong>Output:</strong> 13
34
-
<strong>Explanation:</strong> All subarray sums are 1, 3, 6, 10, 2, 5, 9, 3, 7, 4. After sorting them in non-decreasing order we have the new array [1, 2, 3, 3, 4, 5, 6, 7, 9, 10]. The sum of the numbers from index le = 1 to ri = 5 is 1 + 2 + 3 + 3 + 4 = 13.
33
+
<strong>Output:</strong> 13
34
+
<strong>Explanation:</strong> All subarray sums are 1, 3, 6, 10, 2, 5, 9, 3, 7, 4. After sorting them in non-decreasing order we have the new array [1, 2, 3, 3, 4, 5, 6, 7, 9, 10]. The sum of the numbers from index le = 1 to ri = 5 is 1 + 2 + 3 + 3 + 4 = 13.
0 commit comments