SnoozyPancake
SnoozyPancake

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!

8mo ago
Talking product sense with Ridhi
9 min AI interview5 questions
Round 1 by Grapevine

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
TCS8mo

Thank you , the last tip was golden .

Discover more
Curated from across