Search⌘ K
AI Features

Range Sum of Sorted Subarray Sums

Range Sum of Sorted Subarray Sums asks you to sort the sums of every non-empty contiguous subarray, then add the values from a given inclusive rank range and return the result modulo a large prime.

Statement

You are given an integer array nums containing ...