You are given an integer n representing the length of an unknown integer array ans. You are also given an integer array sums of size ans in no particular order.
Return the array ans. If multiple valid answers exist, return any of them.
Note: The sum of the elements in an empty subset is considered to be
.
Constraints:
n
sums.length
sums[i]
You are given an integer n representing the length of an unknown integer array ans. You are also given an integer array sums of size ans in no particular order.
Return the array ans. If multiple valid answers exist, return any of them.
Note: The sum of the elements in an empty subset is considered to be
.
Constraints:
n
sums.length
sums[i]