Explanation regarding recursion

I am trying to understand recursion in depth but when i implement it i am unable to figure out what to write in code . I am very much confused about how the variables change from one call to another call and difference between the variables declared above recursion call and below the recursion call . I also find it very difficult how to take minimum or maximum answer at every step of recursion and pass it to the previous call . Can someone please explain these things !

Thanks a lot in advance :slight_smile:

Please see the 8th point in Learning Resources of Foundation Level here
The tutorials and practice problems should be enough to understand it. Solutions of those problems will also be available.

1 Like