Lesson 6 of 20 · about 16 min
Tree recursion
When a function calls itself more than once, the calls branch out like a tree. It's perfect for exploring choices ("take it or leave it"), but it can repeat a lot of work.
🔓 Unlock this lesson
This lesson is part of the DoingCamp Pass. Members get every lesson in every course, with all the interactive visuals, coding exercises and challenges.
In this lesson you'll learn:
- Tree recursion
- Counting with choices
Free to try in F03 Programming 2: Abstraction & Recursion:
The first 3 lessons of every course are free, no account needed.