Hii, I was trying the problem Query on a Tree 2, but getting wrong answer. I have used Binary Lifting approach, but can’t find the bug. I hope I am printing the output in the correct format. Please help.
Here is the link to my solution code.
Can someone provide any test cases? If not debugging.