Gate2017 ss Q49

  • Option : B
  • Explanation :
    Given: Preorder ! 12, 8, 6, 2, 7, 9, 10, 16, 15, 19, 17, 20
    In order! 2, 6, 7, 8, 9, 10, 12, 15, 16, 17, 19, 20
    Note: BST In order will give ascending order
    Corresponding BST is

    ∴ Post order is 2, 7, 6, 10, 9, 8, 15, 17, 20, 19, 16, 12
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *