0 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 Algorithms depth-first-search algorithms graph-algorithms + – Shivam Kasat 825 views answer comment Share Follow Print See 1 comment 1 1 comment reply Shivam Kasat commented Dec 9, 2018 reply Follow flag @srestha Mam! will you please help me out with this! 0 0 replyShare Please log in or register to add a comment.
0 0 votes Always use the standard algorithm which uses Stack until and unless mentioned the other way around. Na462 answered Dec 13, 2018 Na462 comment Share Follow 0 reply Please log in or register to add a comment.