Tree Traversals – Preorder, Inorder, Postorder
Tree Traversal: visiting every node of a tree. Unlike other linear data structures, where we traverse through every element in order, it’s not the same with the tree. Trees being non-linear data structures, there will always be more than one way to traverse through a tree. There are three types… Read More »Tree Traversals – Preorder, Inorder, Postorder