Recursion

Shaila Nasrin
5 min readJun 20, 2020
Image from: https://images.app.goo.gl/FryyreksNDFJUA5h8

Most of us know what recursion is and can write recursive code if we are asked to. But when we try to solve advance problems(i.e binary tree, binary search tree etc.) and see recursive solutions, we get confused about how that code is working, so in this post, I will try to explain how a recursive code works behind the scene with a simple factorial finding recursive code, and we will be able to trace more complex recursive code the same way.

--

--