Problem 3632 · Medium

Subarrays with XOR at Least K

Pair every prefix XOR with the earlier prefixes and count the pairs whose XOR value reaches k.

Open the interactive visualisation