Question DSA-TP-0079
HardWhat is the 'meet in the middle' technique for subset-sum?
- A.
Check every subset
- B.
Greedy picking
- 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
Two Pointers and Sliding Window question
What is the 'meet in the middle' technique for subset-sum?
Check every subset
Greedy picking
Sign up free to see the answer and a step-by-step explanation.
Use a hash of each element
Split the set in two, list all subset sums of each half, sort one and match with two pointers or binary search