Understanding Recursion & Memoization via JavaScript

1 · · Jan. 26, 2020, 10:19 p.m.
In this article, you’re going to learn how to use recursive programming, what it is, and how to optimize it for use in algorithms. We’ll be using JavaScript as our programming language of choice to understand the concept of recursion. Prerequisites I’ll be using Big O Notation to compare optimization strategies, which you can brush up on here. What is Recursion? Recursion is any time a function calls itself inside itself, potentially creating a infinite loop. If you’ve ever worked with canvas an...