There are three Depth First Search (DFS) types of traversal algorithms for Binary Tree. Traversal algorithms are for traversing in a Binary Tree. These three are...
Continue reading...Tree Traversal
Binary Tree | Data Structure
I have written a blog about the tree data structure overview. If you don’t know about tree data structure, click here to see my blog. In...
Continue reading...Binary Tree Preorder Traversal | LeetCode 144 | Python | Solution
Click here to see the problem on LeetCode. The problem description is pretty straightforward. We have to return all the nodes’ values following the preorder traversal...
Continue reading...(Pre|In|Post)Order Traversal In Binary Tree | Recursive Way | Code Snippet
Tree traversal algorithms are easy. Let’s see the Python implementation of these three types of tree traversal in the recursive way. Click here to see the...
Continue reading...4 Types Of Binary Tree Traversal | Algorithm Implementation | Iterative Way | Code Snippet
The tree is one of the most important data structures in computer science. We are going to see the Python implementation of tree traversals. In this...
Continue reading...