Bellman–Ford algorithm

1129. Shortest Path with Alternating Colors

Graph-Medium, Single Source Shorted Path