Shortest Path Algorithm Leetcode Problems