Skip to content

Instantly share code, notes, and snippets.

@emilyfreeman
Forked from rrgayhart/recursion.markdown
Last active February 26, 2016 21:45
Show Gist options
  • Save emilyfreeman/7d899a484e39ee262b6a to your computer and use it in GitHub Desktop.
Save emilyfreeman/7d899a484e39ee262b6a 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?

      • Haha. No. A 'bauble' is something you decorate your Christmas tree with. 'Babel' is the Hebrew term for Babylon which means 'confusion'. But he's Swedish. So, we can't hate too much. They brought the world Ikea.

      • Follow Up Question: Will you now?

        • Only if I hate the person I'm talking to.
    • What is an example of why/where you might use recursion

      • Recursion can do everything a loop can do. But a loop can't do everything recursion can do. Matthias used an example of a nested menu so you can group all items with a common parent. The only way to do this with a loop is to have a lot of nested for loops. If a tree is 100 levels deep, you're going to have a bad time. Thus, recursion is the best option.
@rrgayhart
Copy link

Okay I lol'd at Only if I hate the person I'm talking to.

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