Doubt!!

Revision en1, by ubercool, 2018-11-09 17:20:58

I am solving the problem QTREE2 on Spoj.[](http://www.spoj.com/problems/QTREE2/) I am learning LCA and I have calculated LCA using euler tour.But I am unable to find the answer to the second type of query which asks about Kth node in a path from node a to node b in a tree.How do we solve it ??

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ubercool 2018-11-09 17:20:58 301 Initial revision (published)