Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

target sum subsets #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

target sum subsets #37

wants to merge 1 commit into from

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