• Review for "find friend" answer


I took this task without any real knowledge on path finding, but after a lot of time I manage to pass the task.

I still barely understand how the algorithm work, and I want an opinion from you guys how to make the cod better. Any help will be great :-)