Dijkstra Algorithm Leetcode Questions