I was wondering if there is an efficient premade algorithm for determining if the sum/difference of a group of numbers can equal a different number. Example: 5, 8, 10, 2, using + or -, to equal 9. 5 - 8 = -3 + 10 = 7 + 2 = 9 It is somewhere nearer to Knapsack problem. Thanks in Advance.