Skip to content

Instantly share code, notes, and snippets.

@matt-stj
Forked from rrgayhart/recursion.markdown
Last active February 26, 2016 21:48
Show Gist options
  • Save matt-stj/45b3685726738ba8d414 to your computer and use it in GitHub Desktop.
Save matt-stj/45b3685726738ba8d414 to your computer and use it in GitHub Desktop.
Recursion and Generators Homework
  • Watch Recursion
  • Fork this gist
  • Answer the following questions in your fork
    • Do you pronounce 'babel' in the same way?
    • I do not use the word 'bobble' in place of babel.
      • Follow Up Question: Will you now?
      • If it makes me a better programmer, yes.
    • What is an example of why/where you might use recursion
    • If you're building a binary search tree and want to add functionality where you can remove a node and rebalance the tree, recusion can be very useful. I tried to solve this problems with ~80 lines of code in multilpe loops, and found out later than ~10 lines of a recursive function could do the same thing.
@rrgayhart
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment