Review: Recursive Problems

Solving problems in a recursive way will help us to think in an easier way.



Key Questions:

  • What are your base cases?
  • How you get f(n) from f(n-1)?
  • How to evaluate the complexity: time and space?
  • For nested problems, we can use recursive to simplify the logic. Flatten Nested List Iterator

The most impressive problems to me:


See all recursive problems: #recursive

See more blog_posts.

linkedin
github
slack

Share It, If You Like It.

Leave a Reply

Your email address will not be published.