Problem : http://www.spoj.com/problems/POLQUERY/
I am getting WA with this code http://ideone.com/ljHSna
Pls help me by pointing out the error. >.<
Problem : http://www.spoj.com/problems/POLQUERY/
I am getting WA with this code http://ideone.com/ljHSna
Pls help me by pointing out the error. >.<
Whats the meaning of lca when u have a graph, not a tree?
well it is not direct lca
u have to lca in a differnet graph
I remember solving this problem. My solution was getting WA, I got the test data for the original problem from its contest and my solution produced the same output.