Question

    Which data structure is used for implementing

    breadth-first search (BFS) 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

    Queue is used to implement BFS.

    Practice Next