There are conflicting definitions of height of a tree.
Here https://guides.codepath.com/compsci/Binary-Trees, it says Height of a node is the number of edges on the longest path from the node to a leaf.
But here https://inst.eecs.berkeley.edu/~cs61b/fa17/materials/lectures/lect20.pdf, The height of a node in a tree is the smallest distance to a leaf.
There are conflicting definitions of height of a tree.
Here https://guides.codepath.com/compsci/Binary-Trees, it says Height of a node is the number of edges on the longest path from the node to a leaf.
But here https://inst.eecs.berkeley.edu/~cs61b/fa17/materials/lectures/lect20.pdf, The height of a node in a tree is the smallest distance to a leaf.