Open utterances-bot opened 1 year ago
https://rgb-24bit.github.io/blog/2018/tree-dfs.html
非递归的栈深度优先,子节点的遍历需要倒序吧?(多叉树)这导致最后遍历是先左还是先右的,当然最后都是正确的DFS。
树的深度优先遍历
https://rgb-24bit.github.io/blog/2018/tree-dfs.html