You are given two integer arrays nums1 and nums2, each of length n.
The XOR sum of the two arrays is defined as:
(nums1[nums2[nums1[nums2[nums1[n nums2[n
where
Rearrange the elements of nums2 such that the resulting XOR sum is minimized.
Return the minimum XOR sum achievable after rearranging nums2.
Constraints:
n nums1.length
n nums2.length
n
nums1[i], nums2[i]
You are given two integer arrays nums1 and nums2, each of length n.
The XOR sum of the two arrays is defined as:
(nums1[nums2[nums1[nums2[nums1[n nums2[n
where
Rearrange the elements of nums2 such that the resulting XOR sum is minimized.
Return the minimum XOR sum achievable after rearranging nums2.
Constraints:
n nums1.length
n nums2.length
n
nums1[i], nums2[i]