Problem 3681 · Hard

Maximum XOR of Subsequences

Every subsequence XOR lies in the span of the values, so build an XOR basis and take the largest element of that span.

Open the interactive visualisation