CAN'T GET OVER THE SUBSET PROBLEM

Revision en1, by naivedyam, 2024-07-29 13:54:27

I have just started recursion and while most of the concepts were pretty easy for me to understand and apply, I am stuck with one particular one — the famous Subset problem of Leetcode where you have to return all possible subsets of a set. I have seen the solution, watched an explanation but still feel I don't truly understand it. Never been so much stuck with a problem before. Also, I don't think it is a problem that can be skipped because since the time I first saw it (last week) I have reduced 5 different problems to it including one in a contest (which I obviously couldn't implement even after figuring out the logic because I can't solve the subset problem). I have also reduced some CSES problems like Apple Divison to it, but again, unable to solve for the same reason. Could anyone suggest any resources for the same?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English naivedyam 2024-07-29 13:54:27 873 Initial revision (published)