This problem demonstrates when Dijkstra's is NOT the right choice and introduces Bellman-Ford, which handles edge-count constraints naturally.
Enable JavaScript for the full StreamPrep guide.