please find the error.
link to my code - https://ide.codingblocks.com/s/248252
Test case not able to pass
Pulkit… Sry for late reply… I have edited your code… Try to submit it now…
what is wrong in my logic ? first i am comparing that my root data is within my range or not . accordingly i am storing that output in vector(or i could directly print it). afterwards i am recursively checking that root->data is within my range or not. giving desired output when i dry run it. please clear up my dount …
Pulkit, for large test case…Your code was giving the wrong answer… thts why I made those necessary changes… I have mentioned Changed, to whtever lines I have changed or modified in your code… Pls refer to it…