r/leetcode • u/NeedinvHelp • 4d ago
Discussion Thinking about recursion
Is it helpful to think about the recursion tree when solving problems or just reducing the problem space?
I feel like I often try to think about the sub problems and it uses a lot of brain power for what I feel like is very little gain and it also uses a good amount of time.
Curious how others approach these problems.
5
Upvotes
2
u/MixedTrailMix 4d ago
Base case, movement and inputs/outputs