Question DSA-REC-0053
MediumIn the subset-sum problem with all positive numbers, when can a branch be pruned?
- A.
When the running sum already exceeds the target
- B.
Never
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Recursion and Backtracking question
In the subset-sum problem with all positive numbers, when can a branch be pruned?
When the running sum already exceeds the target
Never
Sign up free to see the answer and a step-by-step explanation.
After 2 elements
When the sum is even