Is there a way to avoid revisiting/keep track of visited nodes in recursive traversal without class attribute or passed parameter?

前端 未结 0 507
忘了有多久
忘了有多久 2021-01-19 03:19

Is there a way to do a graph based depth first traversal recursively without passing a "visited" parameter set of visited nodes (or having one as a class attribute

相关标签:
回答
  • 消灭零回复
提交回复
热议问题