Skip to content

various code challenges to practice recursive functions in python

License

Notifications You must be signed in to change notification settings

WDI-SEA/python-recursion-challenges

Repository files navigation

GA Logo Python Recursion Lab

Lets practice some

RECURSION IN PYTHON

recursive computation

Don't worry if it isn't immediately clear how to solve them, work through different ideas and write some code! It's okay to work through a 'naive' solve first and then move on to applying a hash table to optimize your solution.

Getting Started

  • Fork and clone this repo, and cd into python-recursion-challenges
  • each challenge is in a .py file so you can work on them one at time and use the command python <filename>.py to check your work

Tips and Tricks

When first considering how to write a recursive function first consider:

  • What is the base case, that is what is the condition that stop to recursion
  • What is the recursive case(logic), ie what is the chunk of code that needs to run each time the function recurses

Licensing

  1. All content is licensed under a CC-BY-NC-SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.

About

various code challenges to practice recursive functions in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages