GIF picture of binary tree traversal--------Am I drawing wrong---some boring day in 2019

Preface

Review the data structure, prepare for the establishment of the syntax tree, and also review JAVA


Traverse DLR first-middle left and right

Insert picture description here

In-order traversal LDR-left middle right

Insert picture description here

Post-order traversal LRD-left and right

Insert picture description here

Breadth-first traversal (the previous is depth-first)

Insert picture description here

Reference: "Comic Algorithm"

Guess you like

Origin blog.csdn.net/weixin_41374099/article/details/103094449