Question

    Which data structure is used for implementing

    depth-first search (DFS) algorithm?
    A Stack Correct Answer Incorrect Answer
    B Queue Correct Answer Incorrect Answer
    C Linked list Correct Answer Incorrect Answer
    D Tree Correct Answer Incorrect Answer

    Solution

    The correct answer is A

    Practice Next

    Relevant for Exams: