Using JavaScript to Find a Path Between Two Cells in a Grid

D Bharathi
codeburst
Published in
5 min readJul 13, 2020

--

This is definitely one of the most commonly asked questions in any programming interview! The funny part is, the question is often twisted and asked in many ways. But, the foundation for the solution remains the same. It would be a variant of Breadth-First Search (BFS).

Many a time, young programmers are daunted by the idea of implementing BFS and finding that…

--

--