Split positions across k equally-sized desks
Asked at Akuna Capital
You must deal a list of position sizes into exactly k desks so that every desk ends with the same total size. Every position goes to exactly one desk.
sizes = [4, 3, 2, 3, 5, 2, 1], k = 4
-> True # {5}, {4,1}, {3,2}, {3,2}, each totals 5
Return whether such a k-way equal partition exists.
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.