How can I find the diameter of a binary tree with a restriction that the end nodes should be on a different level (have different height)?

前端 未结 0 963
粉色の甜心
粉色の甜心 2020-12-13 00:28

Here\'s a link to the question on leetcode of finding a diameter of a binary tree that I know how to solve. But how can I do this tricky modification, shall I pass a struct

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