Intact Interview Question

Print BST in-order using for loops instead of recursion

Interview Answer

Anonymous

Aug 13, 2018

Use a stack that you populate over time and put it in a for loop. Conditions in for loop are to make sure the stack is not empty.