29 29 votes Construct a binary tree whose preorder traversal is $K\;L\;N\;M\;P\;R\;Q\;S\;T$ and inorder traversal is $N\;L\;K\;P\;R\;M\;S\;Q\;T$ Data Structures gate1987 data-structures binary-tree descriptive + – Misbah Ghaya 8.4k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
Best answer 48 48 votes We can do as follows: $\text{Preorder}: \overbrace{\text{K}}^{\scriptsize \text{Root}} \text{L N M P R Q S T}$ $\text{Inorder}: \underbrace{\text{N L}}_{\scriptsize\text{Left}} \underbrace{\text{K}}_{\scriptsize \text{Root}}\underbrace{\text{P R M S Q T}}_{\scriptsize\text{Right}}$ kirti singh answered Nov 14, 2016 • edited Nov 5, 2022 by Abhrajyoti00 kirti singh comment Share Follow See all 4 Comments 4 4 Comments reply Prashant. commented Nov 14, 2016 reply Follow flag Uplode clear image. 0 0 replyShare kirti singh commented Nov 14, 2016 reply Follow flag Done!! Still not clear.. den its only fault of light :) 0 0 replyShare Prashant. commented Nov 14, 2016 reply Follow flag Now fine...:) 1 1 replyShare Abhrajyoti00 commented Nov 5, 2022 reply Follow flag The Postorder : $NLRPSTQMK$ 0 0 replyShare Please log in or register to add a comment.
10 10 votes ..... Hira Thakur answered Aug 24, 2017 Hira Thakur comment Share Follow 0 reply Please log in or register to add a comment.
5 5 votes Sorry For Orientation Problem But i didnt found rotate option Rishi yadav answered Oct 4, 2017 Rishi yadav comment Share Follow 0 reply Please log in or register to add a comment.