recategorized by
2,662 views
3 votes
3 votes
Could someone please explain  Depth first Search using Stack? I have found different algorithms for handling the  visited flag and the way the nodes are pushed. I am having problems in solving these types of questions

- Find the nodes or number of nodes that are pushed onto stack more than once?

Could someone please help with a small example?
recategorized by

1 Answer

4 votes
4 votes

Page 1

page 2

page 3

page 4

Related questions

1 votes
1 votes
1 answer
2
3 votes
3 votes
3 answers
3
Ibtisam Sayyad asked Jan 12, 2018
7,864 views
What are the minimum enqueue and dequeue operations needed to perform pop operation for a stack which is implemented with two queues if there are already 10 elements in t...