You are given an array of integers nums and an array requests where requests[i]
The nums.
Return the maximum possible total sum of all requests obtained by permuting nums in any order. Since the answer may be very large, return it modulo
Constraints:
n nums.length
n
nums[i]
requests.length
requests[i].length
n
You are given an array of integers nums and an array requests where requests[i]
The nums.
Return the maximum possible total sum of all requests obtained by permuting nums in any order. Since the answer may be very large, return it modulo
Constraints:
n nums.length
n
nums[i]
requests.length
requests[i].length
n