Hello Community,
I am trying to learn to find LCA using binary lifting method. But, I am unable to find where does my code fail. It would be great if someone could point this out.
Problem: LCA
Solution: Solution
Please Help me with this guys ! Please. Thank you!
One mistake which I noticed in line 118 you are using && instead of &
Error in line 118 (not "&&", but "&"). And another error in the 194 line (not "t", but "i", since you print the test number)
It worked guys Thank you so much! Sorry for such a stupid mistake though :(