Recursion explained with Inception movie analogy
--
Recursion can be considered an advanced concept that is commonly used in many programming languages such as Java, C, Javascript and etc., for solving algorithmic problems e.g. leetcode. It is easy to understand what it is in a nutshell but grasping how it works is tough!
Rather than looking at wordy explanation with jargons to learn the “How”, let’s do it in a less painful and fun…