https://www.youtube.com/watch?v=GzJoqJO1zdI

Screenshot 2023-03-15 at 3.16.16 PM.png

The node of the top (3) is called the root of the tree

When you reach a node with no children, you call the node a leaf

All the nodes in between the root and the leaf node are called a branch

Screenshot 2023-03-15 at 3.20.22 PM.png

Traversal Order? (it depends)

You can choose to go traverse through a tree by either

Branching Recursion: Since every node have more than 1 child(multiple children) you can have multiple recursive calls. It will be in the same shape of our tree.

Screenshot 2023-03-15 at 3.23.38 PM.png

Binary Search Tree

Like the binary search algo that uses a list or array, if a tree is balanced (in a list or array, sorted) give us a O(logn) search operation.

Requirements: