RecursionFunction call stack · divide & conquer
active callreturnedwaiting
factorial(5)→ 120
└factorial(4)…
└factorial(3)…
└factorial(2)…
└factorial(1)…
Call stack depth (max)
0frames
N-Queens Backtracking
CSC-325 · Semester V · Design and Analysis of Algorithms
Call stack depth (max)
0frames