Problem 725 · Medium
Count the nodes, then cut them into k parts whose sizes differ by at most one, earlier parts larger.
Open the interactive visualisation