Dijkstras Algorithm Leetcode Questions