You are given two integer arrays, nums1 and nums2, both of the same length.
The advantage of nums1 with respect to nums2 is defined as the total number of indices i such that nums1[i] > nums2[i].
Return any permutation of nums1 that maximizes its advantage with respect to nums2.
Constraints:
nums1.length
nums2.length nums1.length
nums1[i], nums2[i]
You are given two integer arrays, nums1 and nums2, both of the same length.
The advantage of nums1 with respect to nums2 is defined as the total number of indices i such that nums1[i] > nums2[i].
Return any permutation of nums1 that maximizes its advantage with respect to nums2.
Constraints:
nums1.length
nums2.length nums1.length
nums1[i], nums2[i]