Hi All,
I have to implement the following in perl:
I have to write a recursive solution to the following problem:
For an array of integers I have to return if the given number can be a sum of ANY number of array cells.
For example,
if I have the following array:
5, -6, 8, 10, 12, 3, 10
And as a parameter I passed 21
I should return true because 8 + 10 + 3 = 21
To tell you honestly I have no Idea how to implement it :(
Someone ?