Making Recursive Functions Tail Recursive

First of this blog post assumes that you already have a basic understanding of recursion. I’ll use some Python for the code examples simply because it’s a popular language for learners, the concepts I’ll be talking about are language agnostic. In fact your preferred language might benefit more from tail recursion than Python. A look at a recursive factorial function Let’s first look at an issue with recursion, so that we can later fix it using tail recursion. [Read More]