Skip to content

Conversation

hk513
Copy link

@hk513 hk513 commented Oct 17, 2022

  1. You are given a number n, representing the count of elements.
  2. You are given n numbers.
  3. You are given a number "tar".
  4. Complete the body of printTargetSumSubsets function - without changing signature - to calculate and print all subsets of given elements, the contents of which sum to "tar". Use sample input and output to get more idea. note:solved using recusrssion and backtracking

1. You are given a number n, representing the count of elements.
2. You are given n numbers.
3. You are given a number "tar".
4. Complete the body of printTargetSumSubsets function - without changing signature - to calculate and print all subsets of given elements, the contents of which sum to "tar". Use sample input and output to get more idea.
note:solved using recusrssion and backtracking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant