Problem 3702 · Medium

Longest Subsequence With Non-Zero Bitwise XOR

If the whole array XORs to a non-zero value, keep everything; otherwise drop one non-zero element.

Open the interactive visualisation