BFS breadth first search is another building block algorithm. It's built from a queue and a visited marker array.
Episode source
We're a place where coders share, stay up-to-date and grow their careers.