Question DSA-GRAPH-0070
HardWhich algorithm detects a negative cycle reachable from the source?
- A.
BFS
- B.
Dijkstra
- 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 detects a negative cycle reachable from the source?
BFS
Dijkstra
Sign up free to see the answer and a step-by-step explanation.
Prim
Bellman–Ford (an extra relaxation still improves a distance)