Блог пользователя JasonMendoza2008

Автор JasonMendoza2008, история, 4 часа назад, По-английски

I am looking for a problem that applies shortest path in a DAG using topological sort to get linear time (V + E). I couldn't find this kind of problem on the internet even though that's (I assume) a relatively standard problem, am I not looking correctly? Do you guys have an idea where I could find such an algorithm on an online judge (hackerrank, leetcode, codeforces, codechef, I don't particularly care about the platform).

Ideally, some edges are negative, otherwise Djikstra also works.

Thanks!

  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится