Available question text
Given an array, pick two (possibly overlapping or empty) subsequences and maximize the XOR of their XOR-sums — equivalently, choose two values from the set of all subset XORs and maximize their XOR. The core challenge is to characterize all achievable XORs and compute the maximum pairwise XOR efficiently (n up to 1e5, values up to 1e9), typically via a linear basis / Gaussian elimination in GF(2).
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 3681. Maximum XOR of Subsequences
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source