Topological Sort

Revision en2, by _notpalindrome_, 2018-10-20 21:37:47

Recently I have learned topological sort using defth first search(dfs). I am trying to solve the problem for a while but cant understand, What should be my first approach? Can anyone explain me step by step. Any hint would be greatly appreciated. Thanks. :) Problem Link: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2001

Tags topological sort

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English _notpalindrome_ 2018-10-20 21:37:47 6
en1 English _notpalindrome_ 2018-10-20 21:36:12 400 Initial revision (published)