Subset sum recursively in Python
问题 I will be happy to get some help. I have the following problem: I'm given a list of numbers seq and a target number and I need to write 2 things: A recursive solution that returns True if there is a sum of a subsequence that equals the target number and False otherwise. example: subset_sum([-1,1,5,4],0) # True subset_sum([-1,1,5,4],-3) # False Secondly, I need to write a solution using what I wrote in the previous solution but now with memoization that uses a dictionary in which the keys are