This is not homework, this is an interview question.
The catch here is that the algorithm should be constant space. I\'m pretty clueless on how to d
Accepted answer needs the following change otherwise it will not print the tree where the BST only has one node
if (current == NULL && root != NULL) print(root);