[Help] Kth node in the path from A to B in Tree

Правка en1, от rachitiitr, 2016-02-28 13:58:30

I am solving the problem QTREE2 on Spoj. http://www.spoj.com/problems/QTREE2/ I am learning LCA and I am not able to detect the reason for WA. Could someone help me? Here is my code: http://ideone.com/KTmgd2

Теги lca, trees

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский rachitiitr 2016-02-28 13:58:30 257 Initial revision (published)