Given an array of integers and a sum, the task is to count all subsets of given array with sum equal to given sum.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains an nteger n denoting the size of the array. The next line contains n space separated integers forming the array. The last line contains the sum.
Count all the subsets of given array with sum equal to given sum.
2 3 5 6 8 10
1 2 3 4 5
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.