Given an integer array arr of even length, determine whether it is possible to rearrange arr such that arrarrtrue if such a reordering exists, or false otherwise.
Constraints:
arr.length
arr.length is even.
arr[i]
Given an integer array arr of even length, determine whether it is possible to rearrange arr such that arrarrtrue if such a reordering exists, or false otherwise.
Constraints:
arr.length
arr.length is even.
arr[i]