How can I get the two furthest leafs in a Binary Search Tree (BST) in Java?

后端 未结 0 695
臣服心动
臣服心动 2020-12-20 00:31

I need to find the two furthest leafs in a Binary Search Tree (BST) in Java. I understand that the tree\'s diameter is the size of the path between them however I do not kno

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