📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • âś–

      Question

      Which traversal method of a Binary Search Tree will

      always output elements in ascending order?
      A Pre-order traversal Correct Answer Incorrect Answer
      B Post-order traversal Correct Answer Incorrect Answer
      C In-order traversal Correct Answer Incorrect Answer
      D Level-order traversal Correct Answer Incorrect Answer
      E Reverse in-order traversal Correct Answer Incorrect Answer

      Solution

      In-order traversal (Left -> Root -> Right) of a Binary Search Tree visits nodes in non-decreasing (ascending) order of their values.

      Practice Next
      ask-question