in Algorithms
442 views
0 votes
0 votes

there are multiple algorithm of DFS available and i cant figure out which one to follow for solving question asking for the nodes which aren’t pushed into the stack or the nodes which are pushed more than once,

Tried to figure out from already asked question but still can’t get it,

https://gateoverflow.in/98484/dfs-using-stack

https://gateoverflow.in/161225/dfs-number-of-nodes-not-pushed-into-the-stack

in Algorithms
442 views

1 comment

@srestha Mam! will you please help me out with this!

0
0

1 Answer

0 votes
0 votes
Always use the standard algorithm which uses Stack until and unless mentioned the other way around.
by

Related questions

1 vote
1 vote
2 answers
3
Parshu gate asked in DS Nov 18, 2017
1,513 views
Parshu gate asked in DS Nov 18, 2017
1.5k views