07_recursion
Lists and recursion grew up together.
The shape is always the same: a base case, a shrinking step, and trust that the rest is already solved. Lists lose an element at a time, numbers count down - and sometimes two functions take turns.
Lists and recursion grew up together.
The shape is always the same: a base case, a shrinking step, and trust that the rest is already solved. Lists lose an element at a time, numbers count down - and sometimes two functions take turns.