I’m having problems with a recursive function that do the following:
The function receives an array of numbers (N) and size.
The output is 1 if it possible to find cells that their sum equals to size, else it returns 0.
For example:
Array= [5 7 2 4 12 8], size=19
The function will print: 7, 12 or 5,2,4,8, what ever comes up first.
Thanks,



LinkBack URL
About LinkBacks



. Forgive the C-style pointers everywhere
. If you don't understand how it works, ask me.