Home > Back-end >  2013 blue cup 39 steps
2013 blue cup 39 steps

Time:03-05

Want to ask the two big 犇, how in the computer operation of DFS (n + 1, k + 1);
DFS (n + 2 k + 1);

CodePudding user response:

"Given a bit of input, a complete single-step tracking (and press Alt + 7 key to view the Call Stack from the inside to the following out of from the inner to outer function Call history) again," is your least-hassle route to understand the working principle of the recursive function!
Recursive function pay attention to the following factors
Exit criteria,
What parameters,
What, the return value is
What are local variables,
What are global variables,
When output,
, will not lead to stack overflow
  • Related