I need an algorithmic solution in c++ for the partition-problem
Simple explanation: Find all sums that get a number n.
For example
- Input: 5
- Output:
- 11111
- 2111
- 311
- 41
- 5
- 221
- 23
This problem seems so easy, but I couldn’t find a solution. I’m close to make this bruteforce, because the highest input is 11. The articles about that problem are highly mathematic and I don’t really get it.
Thank you all!
1 Answer