Pls tell error in my code.. all test cases not passing
in line 26 it should be j<=e
also you are not returning ld+1/rd+1 whenever target is found in one of the subtrees.
sir my output is coming correct… when ever it is found i am pushing it in vector… pls tell what changes i should do to make my code clear all the ts=est cases
I already told you!
this is your code and is accepted!