As soon as we started programming, we found to our surprise that it wasn’t as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs. Maurice Wilkes

Construct tree from given inorder/preorder

Language Java | Level Intermediate | Category Data structure | September 8, 2015 8:54 am

Data structure Description

Write a program to traverse binary tree using in order and post order from the binary tree.



Binary Tree In order Values from array: [7, 10, 4, 3, 1, 2, 8, 11]
Binary Tree Post order Values from array: [4, 10, 3, 1, 7, 11, 8, 2]
Print Values from Binary tree: 7  10  4  3  1  2  8  11  



No comments available!

Please login to add comments.