hard to visualize recursion call stack .Found this website for visualization of each step of recursion


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.