Skip to content

Instantly share code, notes, and snippets.

@patwey
Forked from rrgayhart/recursion.markdown
Last active February 26, 2016 21:49
Show Gist options
  • Save patwey/b5ceca6a20eb4b7ada6b to your computer and use it in GitHub Desktop.
Save patwey/b5ceca6a20eb4b7ada6b to your computer and use it in GitHub Desktop.
Recursion and Generators Homework

From: Recursion

Do you pronounce 'babel' in the same way?

Yes. Of course. Always.

Follow Up Question: Will you now?

Yes.

What is an example of why/where you might use recursion?

I think you can argue that recursive solutions are often more elegant that iterative ones, even though they are less performant. They can come in handy when you want to "branch" off a function multiple times (with different parameters), and when you want to traverse a hierarchy like a binary search tree.

@rrgayhart
Copy link

👍

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