matthewsamuel95 / ACM-ICPC-Algorithms

Algorithms used in Competitive Programming
2.07k stars 1.26k forks source link

brief and optimized Bellman-Ford implementation. #1048

Closed marius004 closed 3 years ago

marius004 commented 3 years ago

I have just implemented a better and cleaner version of the Bellman-Ford algorithm using a queue in C++.