- numbers = {2,5,9,2,5} and goal = 6
((9/(5-2))+(5-2))
3 was used twice in this solution, both being made in the same way by (5-2)
- numbers = {0,2,2,9,4} and goal = 0
(0*(((2+2)+9)+4))
This solution was trivial because 0 can always be used to make 0 via multiplication
- numbers = {9,1,5,3,4} and goal = 8
((5-9)+(4*3)*1)
This solution utilizes a negative number
- numbers = {9,2,4,0,6} and goal = 8
((2*4)+(((9*6)*4)*0))
Getting 8 could be done with just one operation (2*4) and having a zero made it possible to zero out the rest of the inputs with multiplication
- numbers = {3,5,2,7,2} and goal = 4
(((7-5)+2)*(3-2))
This problem is basically 2+2
- numbers = {4,6,3,6,4} and goal = 5
(3+((4/4)+(6/6)))
One is made twice here
- numbers = {5,6,3,6,0} and goal = 4
((6-3)+((6-5)+0))
Subtraction is utilized twice here
- numbers = {1,4,5,7,0} and goal = 4
((1*4)+(5*(7*0)))
This solution follows the order of the numbers in problem
- numbers = {4,6,7,8,4} and goal = 3
(6/((4/4)+(8-7)))
This solution uses 2 divisions and a subtraction operation
- numbers = {9,8,9,9,2} and goal = 2
((9-((8*9)/9))*2)
This solution again follows the order of the numbers in the problem