Recursion solves problems where the solution depends on solutions to smaller problems. Recursion is useful when there are many possible branches.
Tips
1. Test, test, test
2. Use memoization where applicable
3. Be careful of memory issues
4. Make sure all input has a way to exit
🌎 Follow me here:
Discord: / discord
Twitter: / tomdoes_tech
Facebook: / tomdoestech
Instagram: / tomdoestech
TikTok: / tomdoes_tech
☕ Buy me a coffee: https://www.buymeacoffee.com/tomn