Height of a tree with only one node

后端 未结 6 1369
天涯浪人
天涯浪人 2020-12-14 01:29

According to Wikipedia,

The height of a tree is the length of the path from the root to the deepest node in the tree. A (rooted) tree with only one

6条回答
  •  既然无缘
    2020-12-14 02:11

    depends how you want to interpret the height of a tree. in some applications, a tree with one node is interpreted as having height of one and others consider it as having height of zero.

提交回复
热议问题