Question DSA-GRAPH-0035
EasyWhich algorithm finds single-source shortest paths even when some edge weights are negative?
- A.
Bellman–Ford
- B.
BFS
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Graphs question
Which algorithm finds single-source shortest paths even when some edge weights are negative?
Bellman–Ford
BFS
Sign up free to see the answer and a step-by-step explanation.
Dijkstra's algorithm
Prim's algorithm