What method can efficiently calculate all solution to a diversity of a?
For example, X1 + X2 +...... + X26=51;
All integer solutions for each solution range between 0 to 10,
CodePudding user response:
51 1, divided into 26 heap,
CodePudding user response:
If allowed to decimal or negative, should be an infinite number of solutions, allowing only positive integer, directly with backtracking method
CodePudding user response: