mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 13:56:28 +08:00
Update binary_tree_traversal.md with review
This commit is contained in:
parent
1d397435a8
commit
4da4d8fda5
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Binary tree traversal
|
# Binary tree traversal
|
||||||
|
|
||||||
From a physical structure perspective, trees are data structures based on linked lists. Hence, their traversal method involves accessing nodes one by one through pointers. However, trees are non-linear data structures, which makes traversing a tree more complex than traversing a linked list, requiring the assistance of search algorithms.
|
From a physical structure perspective, a tree is a data structure based on linked lists. Hence, its traversal method involves accessing nodes one by one through pointers. However, a tree is a non-linear data structure, which makes traversing a tree more complex than traversing a linked list, requiring the assistance of search algorithms.
|
||||||
|
|
||||||
The common traversal methods for binary trees include level-order traversal, pre-order traversal, in-order traversal, and post-order traversal.
|
The common traversal methods for binary trees include level-order traversal, pre-order traversal, in-order traversal, and post-order traversal.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue