Eat Study Love

먹고 공부하고 사랑하라

leetcode 14

Range Sum of Sorted Subarray Sums[M,Array,Two Pointers,Binary Search,Sorting]

https://leetcode.com/problems/range-sum-of-sorted-subarray-sums/description/?envType=daily-question&envId=2024-08-04You are given the array nums consisting of n positive integers. You computed the sum of all non-empty continuous subarrays from the array and then sorted them in non-decreasing order, creating a new array of n * (n + 1) / 2 numbers.Return the sum of the numbers from index left to i..

Coding_Practice 2024.08.05