• + 0 comments

    A brute force solution for pairs works. Identify the highest bit from min(arr) XOR max(arr), then select the smallest values among min(arr[i] XOR arr[j]) with this highest bit set. All tests passed.