PROBLEM : Print BST in the given range

i am getting run time error while sumbission , otherwise code is working…

I think you are not understanding the problem properly you need to find the nodes which fall within the given range a and b but you are finding the nodes which are either a or b .
here is the link to the updated code :


have a look and dry run the code once or twice you will understand it .
If your doubt is resolved please mark it as resolved . Thankyou :slight_smile:

1 Like