Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 389 Bytes

File metadata and controls

4 lines (3 loc) · 389 Bytes

JS Breadth-first search algorithm

This is the BFS Algorithm I wrote using Vanilla JS as a part of a technical interview at Klarna in 2019

The goal of the task to find the shortest path given an input of 2 arrays and 2 numbers (start and end), and to then return the length of the shortest path. The algorithm passed all tests and helped me onto the next step in the interview process.