GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
88 views
State whether the following statements are TRUE or FALSE:

It is possible to construct a binary tree uniquely whose pre-order and post-order traversals are given
asked in DS by Veteran (29.2k points)  
retagged by | 88 views

1 Answer

+4 votes

Yes it is possible since we can create Binary search tree , we know every Binary search tree is binary tree also  but there are many binary tree posiible , so we know that thier is many binary tree possible without inorder.

So answer is NO for this quetion

Reffer: http://www.geeksforgeeks.org/if-you-are-given-two-traversal-sequences-can-you-construct-the-binary-tree/

answered by Veteran (46.8k points)  
edited by


Top Users May 2017
  1. Prashant.

    130 Points

  2. akankshadewangan24

    102 Points

  3. Tesla!

    90 Points

  4. Vishal Goel

    20 Points

  5. sh!va

    20 Points

  6. Arjun

    14 Points

  7. Krunal2016

    12 Points

  8. Raushank2

    10 Points

  9. Habibkhan

    10 Points

  10. akash.dinkar12

    10 Points

Monthly Topper: Rs. 500 gift card
Top Users 2017 May 01 - 07
  1. Prashant.

    130 Points

  2. akankshadewangan24

    102 Points

  3. Tesla!

    90 Points

  4. Vishal Goel

    20 Points

  5. sh!va

    20 Points


22,195 questions
28,249 answers
63,694 comments
24,385 users