Problem 3599 · Medium
Split the array into k contiguous pieces, choosing the split that minimises the sum of each piece XOR.
Open the interactive visualisation