chao baiBinary Tree(4) / AlgorithmIn this section, we will discuss some cases that are special. For the majority of the solution for a binary tree, the result will include…Dec 20, 2022Dec 20, 2022
chao baiBinary Search Tree/ AlgorithmBinary Search Tree is a node-based binary tree data structure that has the following properties:Apr 12, 2022Apr 12, 2022
chao baiBinary Tree(1) / AlgorithmA tree whose elements have at most 2 children is called a binary tree. Each element in a binary tree can have only 2 children, we typically…Mar 20, 2022Mar 20, 2022
chao baiBinary Search(2) / AlgorithmIn the previous section, it talked the Section 1: Find the exact same one as the target value, no duplicate value in the array.Feb 14, 2022Feb 14, 2022
chao baiBinary Search(1) / AlgorithmBinary search is an efficient algorithm for finding an item from a sorted list of items. It works by repeatedly dividing in half the…Feb 10, 2022Feb 10, 2022
chao baiUnion Find / AlgorithmThe union-find data structure is a data structure that stores a collection of disjoint (non-overlapping) sets. Equivalently, it stores a…Feb 6, 2022Feb 6, 2022