the LCA problem on SPOJ. I keep getting runtime error with both depth approach and euler tour approach. Below is my code based on binary lifting and depth approach. Please help.
the LCA problem on SPOJ. I keep getting runtime error with both depth approach and euler tour approach. Below is my code based on binary lifting and depth approach. Please help.