SnoozyPancake
SnoozyPancake
17mo

Recursion πŸ˜΅β€πŸ’«

Hi Everyone,

I recently started revisiting DSA, but I’m struggling with backtracking and recursion again. I find it difficult to think recursively. When I look at others’ solutions, I can understand them, but I’m having trouble coming up with recursive solutions on my own.

I encountered a similar issue during my college days, which led me to quit DSA back then. Does anyone have any advice or tips on how to improve my recursive thinking and make progress with backtracking?

Thanks in advance!

17mo ago

Understand fundamental and basic building block of recursion . Start with basic and small recursion method and then refine to make it a little hard in each step.

Another way write method with while loop and try to replace that while loop method with recursion

SnoozyPancake
SnoozyPancake

Thank you , the last tip was golden .

Discover more
Curated from across