Problem 3287 · Hard

Find the Maximum Sequence Value of Array

Pick 2k elements; the value is OR(first half) XOR OR(second half). Prefix and suffix sets of achievable OR values find the best split.

Open the interactive visualisation