PRINT BST KEYS IN GIVEN RANGE

https://ide.codingblocks.com/s/436509,
please check my code , sample output is same but test cases are not passing.

Hello @CODER_JATIN there was mistake in your output format:


i have added all the necessary things:

OKAY BROTHER , THANK YOU :slight_smile:

Ans bhai ham is question ko LCA wale concept se bhi to kar skte hai?

lca vale se kese could you please elaborate?

If input we give is 5 3 2 1 0 4 8 7 6 9 , and range is (1,8) then what should be the output?

@CODER_JATIN this should be the output for that:

Preorder : 5 3 2 1 0 4 8 7 6 9

Nodes within range are : 1 2 3 4 5 6 7 8