Iteration

We can easily convert our recursive Graph DFS code to iterative code. Usually this isn't necessary, but you should know the basic idea for an interview. Just use your yown custom stack to keep track of calls, instead of relying on the computer's Call Stack.

Mark as Completed:
Submits:
test
Test your code to get an output here!