HLD : SPOJ QTree . Need Help

Revision en1, by SbrTa, 2016-09-09 06:39:01

Getting WA in this problem. My Solution . I tried Heavy-Light-Decomposition for the first time. But don't know why getting WA. can you pls help me to find out the bug or any test case that my code fails..

Tags hld, spoj qtree, heavy-light

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English SbrTa 2016-09-09 06:39:01 299 Initial revision (published)