CodeMosa
Master LeetCode Patterns
All Patterns
Collections
Sign In
Back
Shortest Path
Question 1 of 12
8% Complete
Medium
When edges have non-negative weights, which algorithm finds single-source shortest paths efficiently?
A
Dijkstra
B
BFS
C
Bellman-Ford
D
Floyd–Warshall