Algorithm | Tree traversal

There are three types of depth-first traversal: pre-order,in-order, and post-order. For a binary tree, they are defined as operations recursively at each node, starting with the root node as follows:
相关文章
相关标签/搜索