Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 3681. Maximum XOR of Subsequences
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).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.