Question

    Which tree traversal visits the nodes in the order:

    left, root, right?
    A Preorder traversal Correct Answer Incorrect Answer
    B Inorder traversal Correct Answer Incorrect Answer
    C Postorder traversal Correct Answer Incorrect Answer
    D Level-order traversal Correct Answer Incorrect Answer

    Solution

    Preorder traversal

    Practice Next

    Relevant for Exams: