3681. Maximum XOR of Subsequences
You are given an integer array
numsof lengthnwhere each element is a non-negative integer.Select two subsequences of
nums(they may be empty and are allowed to overlap), each preserving the original order of elements, and let:
Xbe the bitwise XOR of all elements in the first subsequence.Ybe the bitwise XOR of all elements in the second subsequence.Return the maximum possible value of
X XOR Y.Note: The XOR of an empty subsequence is 0.