Problem 3755 · Medium

Find Maximum Balanced XOR Subarray Length

Use prefix XOR and the even-minus-odd balance as one key, and keep the first position where each key appears.

Open the interactive visualisation