find maximum distance in set of nodes

前端 未结 0 1156
醉梦人生
醉梦人生 2021-02-07 17:49

We are give a tree T, and a set of nodes initially empty P={}. we have 3 kind of operations:

1.add a node to `P`
2.delete a node from `P         


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