Are empty Binary Search Trees valid?

前端 未结 7 1480
挽巷
挽巷 2021-01-12 12:48

I have two questions regarding binary search trees, both about empty trees.

  1. Is an empty tree (null) valid?
  2. Is a root node without children valid?
7条回答
提交回复
热议问题