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