Binary Tree traversal such as preorder traversal, inorder traversal, postorder traversal, and level order traversal is commonly interviewed by many IT companies.
It confuses me to remember the iterative implementation of pre-order traversal and inorder traversal.
Here are the problems from leetcode.
https://leetcode.com/problems/binary-tree-inorder-traversal/
https://leetcode.com/problems/binary-tree-preorder-traversal/
We walk the graph, from top going counter-clockwise. Shout every time we pass the LEFT of a node.
We walk the graph, from top going counter-clockwise. Shout every time Shout when you cross the bottom.
We walk the graph, from top going counter-clockwise. Shout every time Shout when you cross the right
If you want to see more recursive and iterative implementation details, please read the following post