Code
- Program.cs
Algorithm
- Tree
- Can have one or fewer parent nodes and multiple child nodes
- Starts at one root node and has child nodes, each child node also has its own child nodes
- Cannot have a cycle structure that starts from one node and returns to its own node.
Make Tree
- Class
- Make TreeNode
- Make TreeNode
- Make Tree
- Can make Tree like a List
- Height
- Count bottom to top
Math.Max(int value1, int value2)
- Compare
- Return Bigger one