3-PARTITION problem
It’s easy to generalize 2-sets solution for 3-sets case. In original version, you create array of boolean sums where sums[i] tells whether sum i can be reached with numbers from the set, or not. Then, once array is created, you just see if sums[TOTAL/2] is true or not. Since you said you know old version … Read more