An unknown array of integers arr containing nums. A positive integer
lower, where lower[i] arr[i]
higher, where higher[i] arr[i]
The elements of lower and higher were then combined in an arbitrary order to form the array nums of length
Given the array nums, reconstruct and return the original array arr. If there are multiple valid answers, return any of them.
Note: The integer
must be strictly positive ( ).
Constraints:
nums.length
nums[i]
The test cases are generated such that there exists at least one valid array arr.
An unknown array of integers arr containing nums. A positive integer
lower, where lower[i] arr[i]
higher, where higher[i] arr[i]
The elements of lower and higher were then combined in an arbitrary order to form the array nums of length
Given the array nums, reconstruct and return the original array arr. If there are multiple valid answers, return any of them.
Note: The integer
must be strictly positive ( ).
Constraints:
nums.length
nums[i]
The test cases are generated such that there exists at least one valid array arr.