Problem 2935 · Hard

Maximum Strong Pair XOR II

Sort the numbers and slide a window that keeps only values within twice the newest one, while a counted trie answers the best xor partner.

Open the interactive visualisation