find maximum distance in set of nodes

前端 未结 0 416
鱼传尺愫
鱼传尺愫 2021-02-07 17:58

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         


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