Problem 3599 · Medium

Partition Array to Minimize XOR

Split the array into k contiguous pieces, choosing the split that minimises the sum of each piece XOR.

Open the interactive visualisation