We mostly use recursive function whenever we are asked traversal of binary tree. But what if you have to do it iterative. All recursion function can be converted to iterative with more or less effort.
Here we will see Post-order, Pre-order & In-order traversal of given binary tree using iterative method.
Following is implementation of above problem in c language.
Please write comments if you find anything wrong or you want to add something more related to this topic.
No comments:
Post a Comment
Write your comment here.