Grokking Graph Algorithms for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
Step 6

Jimmy

Feb 8, 2024

In step 6 of the example, you shouldn't enqueue vertex F since it was enqueued in step 4 and vertex F was already marked as visited.

1

0

Comments
Comments
Shubham Vora
Shubham Voraa year ago

Thanks for pointing out the error! it is fixed now!

On this page

Step-by-Step Algorithm for BFS

Algorithm Walkthrough

Implementation of Breadth First Search

Complexity analysis

Final Words