[LeetCode series of algorithms] - Binary Tree Series (easy class)

LeetCode binary tree series Recently, I began to carefully prepare the algorithm, so I opened the familiar algorithm sketch, explored the advanced problem brushing methods inside, and finally summarized the author's meaning, that is, thinking about the templates in my heart, and then doing them in sets. I also recommended novices to brush t ...

Posted on Fri, 03 Sep 2021 18:07:29 -0400 by simjay

Detailed traversal algorithm for binary trees and graphs

Before formally introducing the contents of this article, review the classification of data structures to better understand the traversal of trees and graphs. Data structures are logically linear and can be classified into linear and non-linear tables. Linear tables refer to data that conforms to one state after another during storage. Drawin ...

Posted on Thu, 02 Sep 2021 02:15:39 -0400 by somethingorothe

Tree of data structures and algorithms

Binary tree Why do you need a tree data structure Analysis of array storage mode Advantages: it is fast to access elements by subscript. For ordered arrays, binary search can also be used to improve the retrieval speed.Disadvantages: if you want to insert values (in a certain order), they will move as a whole, which is inefficient. Analysis ...

Posted on Wed, 01 Sep 2021 14:44:42 -0400 by sethadam1