Problem 3141 · Medium

Maximum Hamming Distances

For each number, find the partner in the array whose m-bit form differs in the most positions, by XOR-ing pairs and counting set bits.

Open the interactive visualisation