Partition to K Equal Sum Subsets.
Unlock detailed company stats for this questionUpgrade
LeetCode hard. I first tried sorting ascending with a two-pointer approach (we knew it would fail but could not find where), then gave the skeleton of backtracking with recursion due to time constraints, followed by discussion of pruning and optimization.
Expect follow-ups like
- Discuss pruning and optimization for the backtracking approach.
Format · Amazon SDE-2 phone screen, Bangalore.
Community answers
No answers contributed by the community yet.
Related questions
Partition Equal Subset Sum.Partition an array into K subsets with equal sum.Partition an array into two sub-arrays with equal sum.Related courses

Course

Course
Course
