DEV Community

Arpan Patel
Arpan Patel

Posted on

Inorder Traversal in a Nutshell 🥜

What is Inorder Traversal ?

Inorder Traversal is a type of tree traversal technique which follows the Left-Root-Right pattern.

Left-Root-Right pattern

  1. The left subtree is traversed first.
  2. Then the root node for the subtree is traversed.
  3. Finally, the right subtree is traversed.

Image description

Example 1:

basic concept

Example 2:

Image description

Top comments (0)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay