I'm stuck with this problem when I was doing some math and I need to find all possible sums of a given number. Here is a sample input and output for a better understanding of the problem.
Let say we are given an array arr=[1,2,3,4,5]
and given number number=10
then i need something like this,
def solution(arr,number):
#you can code here
output : [1,2,3,4],[2,3,5],[1,5,4],[1,3,6],[1,6]