hi there
I was reading, and one conditions is that you MUST use each number at least once, and at most twice, right?
however, what if you give me 5 numbers, but the smallest solution would be using only 4 of them?
i mean, you give me:
a,b,c,d,e=>f
the best solution being:
a+b+c+d=f
but if i have to use all numbers then the solution would be presented as:
a+b+c+d+(e-e)=f
Which only adds one more operator to the solution, nothing else. Well, when the list gets bigger, you could try to find a better way to remove all non-used numbers via substraction, but this, by all means, would be already kinda useless???
anyway, i wanted to make sure: ALL and ALL numbers must be used, or we must use as few numbers as possible??????
|