89fd8129817a245afdd758446ffb002467e0815f
Using a stack or queue, we can replace a function recursive tree traversal with a single call. A stack would make it a DFS while a queue would be a BFS. Since there's only ever two children, and at high iteration counts we're getting quite large depth, it would be best to do a DFS, hence the stack.
Description
Languages
C
96.1%
C++
3.8%
Shell
0.1%