C
C
Coline2020-09-01 18:54:23
Algorithms
Coline, 2020-09-01 18:54:23

How to implement exit time in non-recursive DFS implementation?

It is necessary not only to implement non-recursive DFS, but also with the time of entry / exit to / from the top. Nowhere can I find a non-recursive variant with times, all recursive molds. The entry time is implemented in the same way as in the recursive one and works correctly, but there is no exit time

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question