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
@srestha Mam! will you please help me out with this!
64.3k questions
77.9k answers
244k comments
80.0k users