Should the max depth of a binary tree exclude the root?

前端 未结 0 891
一个人的身影
一个人的身影 2021-02-05 16:29

So far, I saw 2 different implementations for a max depth of a tree here,

  1. 1st one, max depth === level - 1: https://www.geeksforgee

相关标签:
回答
  • 消灭零回复
提交回复
热议问题