PATHLIGHT
LESSON 02 OF 08Tree DFS · inorder
0%
BINARY TREE INORDER TRAVERSAL · DEPTH-FIRST SEARCH

Visit every node in left → node → right order.

Click the next node DFS visits. The moving cursor shows recursion descending and returning through the tree.

INORDER RULELEFT SUBTREE NODE RIGHT SUBTREE
INPUT · BINARY SEARCH TREEA node stores a value. Each line connects a parent to its left or right child.
4Root node2Left child of 46Right child of 41Left child of 23Right child of 25Left child of 67Right child of 6
DFS cursor added to outputClick the node visited next