Skip to content

Tag: dynamic-programming

Can someone explain canSum to me please

The question states: Write a function canSum(targetSum, numbers) that takes in a targetSum and an array of numbers as arguments. The function should return a boolean indicating whether or not it is possible to generate the targetSum using numbers from the array. You may use an element of an array as many time…