Hide Index
Binary Tree
0% completed
Introduction to binary trees
Array implementation of binary trees
Linked list implementation of binary trees
Recursive traversals in binary trees
Iterative traversals in binary trees
Constructing a binary tree
Insertion in binary trees
Pattern: Preorder traversal (Stateless)
Pattern: Preorder traversal (Stateful)
Pattern: Postorder traversal (Stateless)
Pattern: Postorder traversal (Stateful)
Pattern: Root to leaf path (Stateless)
Pattern: Root to leaf path (Stateful)
Pattern: Level order traversal
Pattern: Lowest common anscestor
Pattern: Simultaneous traversal
Practice: Mix traversals
Certificate
Understanding construction using preorder and inorder traversal
If given both the preorder and inorder traversal sequence of a binary tree, we can construct the tree. We use both sequences in tandem to construct the tree and resolve any ambiguity incrementally.
Loading Image
Tree constructed from inorder and preorder traversal
We follow a very simple idea to construct the binary tree from a given preorder and inorder traversal.
Liking the course? Check our discounted plans to continue learning.