Problem 698 · Medium

Partition to K Equal Sum Subsets

Fill buckets with the largest numbers first, backtracking when a placement cannot complete the split.

Open the interactive visualisation