Question

Which of the following algorithms is best suited for finding the shortest path in a weighted graph where some edges may have negative weights but no negative cycles?

A Dijkstra's Algorithm
B Kruskal's Algorithm
C Bellman-Ford Algorithm
D Prim’s Algorithm
E Floyd-Warshall Algorithm
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)