edited by
1,424 views
0 votes
0 votes

Which is the best data structure to implement topological sort on directed graph?

  1. Heap
  2. Stack
  3. queue
  4. Array

 

edited by

1 Answer

0 votes
0 votes
topological sort application dfs

dfs used stack

answer is stack

Related questions

1 votes
1 votes
1 answer
1
kamakshi asked Nov 18, 2017
1,339 views
Caption
3 votes
3 votes
5 answers
2
0 votes
0 votes
0 answers
4
CHïntän ÞäTël asked Dec 25, 2018
344 views
According To Me Answer Should Be 6… Anyone Please Try Once!!! Given Is 5 With No Explaination !!!!like 11-12-12 then for second square 4 times 13 so c(4,2) any two of t...