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


    ⚡ Rakhi Special - Flat 52% off on All Courses from 6 to 10 Aug! ⚡ Enroll Now

    Question

    In a depth-first traversal of a tree or graph, what data

    structure is typically used to keep track of nodes to be visited next?
    A Queue Correct Answer Incorrect Answer
    B Stack Correct Answer Incorrect Answer
    C Priority Queue Correct Answer Incorrect Answer
    D Linked List Correct Answer Incorrect Answer
    E None of the mentioned Correct Answer Incorrect Answer

    Solution

    The correct answer is B

    Practice Next
    ask-question