Join waitlist
DSACommunity question

recursion samajh nahi aata yaar

Asked by Rahul Yadav 21 days ago 2 answers 4 votes

base case aur recursive call theek hai but tree recursion me (like subsets) dimag kharab ho jata hai. kaise practice karu

2 answers

Aditya Verma21 days agoMost voted3

pehle chhote input (n=2, 3) pe pura tree paper pe banao. 5-6 baar karoge toh pattern samajh aa jayega. subsets, permutations, combination sum, isi order me karo

Abhishek Dubey21 days ago1

aur har call pe ek line print karo depth ke saath (indentation), debugging me bahut help hota hai

Related questions

Go deeper

Want the full explanation, not just an answer?

Structured lessons on DSA, core CS, Java and interview skills, each ending in a quiz so you know it stuck.