codeintuition-logo

Understanding iterative inorder traversal


Just like the preorder traversal, to understand the iterative implementation of inorder traversal, we need to split the whole process into small steps and understand how each step functions.  Let us start by looking at how inorder traversal is done. 

  • Step 1: Recursively traverse the node's `left` subtree.
  • Step 2: Visit the node.
  • Step 3: Recursively traverse the node's `right` subtree.

Iterative Steps

Liking the course? Check our discounted plans to continue learning.