I didn't find a way to write a solution to this task using List, however I managed to find another way using binary numbers. I don't know if this is the most elegant solution, but I think it works...
Well I gave it a try and with my version i finds more options, but it still gets lost with bigger numbers such as (123456789=252 - 123+45+67+8+9=252).
Here is my code:
Sorry I wasn't around for so long, but I still don't have a full solution to this exercise.
fcronin, thank you, your post helped me very much. But your solution doesn't check all the options, for...
I tried to write it, but the code was too long and complicated. Not to mention it didn't work. So I thought that there is an easier way for sure, maybe a trick that I don't know. Basicaly, I tried to...
Hello folks,
I have a task that I cannot solve, maybe you guys can help me out :).
To explain it I'll start with an example.
1234=46
2222=8
These equations are false, but if you add plusses...