Tree construction a Binary Tree from Postorder and Inorder traversal [Amazon, Adobe]

Problem: Provided Inorder and PostOrder of a tree. Construct the tree and print it in PreOrder traversal.

The problem was provided as a functional problem in Amazon & Adobe interview as here  [Courtesy : geeksforgeeks] Solution:

 

Tree construction from Inorder & Preorder [ Microsoft ]

Problem: Provided Inorder and PreOrder of a tree. Construct the tree and print it in PostOrder traversal.

The problem was provided as a functional problem in Microsoft interview as here  [Courtesy : geeksforgeeks] Solution:

 

Binary Tree to Doubly LinkedList Conversion [ Microsoft – Amazon ]

Problem:Given a Binary Tree (BT), convert it to a Doubly Linked List(DLL) In-Place. The left and right pointers in nodes are to be used as previous and next pointers respectively in converted DLL.The order of nodes in DLL must be same as Inorder of the given Binary Tree. The first node of  Inorder traversal (left