loading...

Writing a simple version of Breadth First Search in Javascript

itsjjpowell profile image Jonathan Powell ・1 min read

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.

Discussion

pic
Editor guide