CSC300: Stacks and Recursion [4/13] Previous pageContentsNext page

Stacks are useful for backtracking

Functions use a Call Stack

Recursive functions are more general than loops

Thus, we can translate any loop into a recursive function

Previous pageContentsNext page