Hello everyone, I was practicing a problem from
interview bit — https://www.interviewbit.com/problems/kth-smallest-element-in-tree.
Here is my code for the same.
I don't know why I am getting wrong answer with this even though it shows correct output when I try to debug it.
Please help.