|
|
back to boardVery easy problem) Write Bellman-Ford. And receive AC :) Re: Very easy problem) This problem can easily be solved by DFS in 0.001 time. I also think that there are several other ways to get AC. But looking at the forum, it seems that there is only one correct solution by Bellman-Ford algo. It is disappointing statement Re: Very easy problem) No, I've solved it just with DP with some optimizations to avoid TLE... |
|
|