Given the depth of the tree, I need to calculate the longest possible path in the full binary tree (also known as the diameter).
When attempting this problem, I experimented with what the depth has to do with the path length. However, the solutions I came up with depended on going through the root, while the longest path could obviously exist outside of the root.
What's an equation I can use to find the diameter of the full binary tree using the depth?