Available question text
Find the maximum bitwise XOR of two elements (you may pick the same element twice) from nums under the "strong pair" constraint |x−y| ≤ min(x,y) — equivalently max(x,y) ≤ 2·min(x,y), so pairs must lie within a factor of two. The core challenge is to efficiently search for the max XOR among values in this restricted range (typical approaches sort nums and use a sliding window with a binary trie or bitwise greedy queries).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2935. Maximum Strong Pair XOR II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source