Problem 2588 · Medium

Count the Number of Beautiful Subarrays

A subarray is beautiful exactly when its XOR is zero, so equal prefix XORs mark beautiful subarrays.

Open the interactive visualisation