Riffing on Gustavo Duarte's arguments and examples about using tree traversal rather than factorial for motivating and visualizing recursion
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with gumption:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Motivating_and_Visualizing_Recursion_in_Python.ipynb
README.md

README.md

Motivating and Visualizing Recursion in Python

A riff on Gustavo Duarte's blog post about using better motivated examples to visualize recursion.

This IPython Notebook uses the same example - traversing a maze (representing as a binary tree) - and contrasts it with the recursive and iterative versions of factorial. The main difference is that it is done here in Python, whereas the original version is in C.