Kth nearest ancestors of a node

Правка en1, от monsij, 2018-09-24 08:16:40

Any approach to solve this problem. As expected making dfs calls from every vertex results in TLE

Thanks in advance!

Теги #trees, ancestor

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский monsij 2018-09-24 08:16:40 203 Initial revision (published)