DEV Community

Jonathan Powell
Jonathan Powell

Posted on

Writing a simple version of Breadth First Search in Javascript

Breadth First Search is one of those top 10 algorithms to know for an interview. Here it is in javascript. This code works if you're using an adjacency list to represent your graph.

Top comments (0)