Hi all,
I was trying to solve this problem https://www.codechef.com/problems/KTHPATH and continuously getting WA.I have tried several test cases of my own including test cases that may include single node,skew tree etc but the code seems to give correct answer for all.It will be helpful if anyone can look at the code and suggest some test cases where my code might fail.
My solution https://www.codechef.com/viewsolution/16027037
Thank you