Given a rooted tree T=(V,E),check if two vertices are on the same level

前端 未结 0 705
闹比i
闹比i 2020-12-11 15:21

Given a rooted tree T=(V,E).

How to construct an algorithm that checks whether two vertices u, v∈V are at the same level in T or not?And what is the time complexity a

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