Pair sum in bst exists or not

ide:-https://ide.geeksforgeeks.org/RUT7ovxbq3

Testcase:-7
68 59 16 62 47 28 91
78

failing for the this test case can you please help me out

hello @manikjindal49
pls share question link as well

You can directly search it on google that is there any pair with given sum in bst

and please solve my last doubt also no one replied on that from last night

there is no doubt pending
image

pls share the link, i dont no where u r submitting

Actually even if i share the link you will not be able to see that thats why i said directly search on google its on gfg only

i searched but didnt get any such link that matches ur code.

whatever link u have share it with me , i will try access it

pass ur set by refrence and then try

Can you tell me why pass by reference is doing better the=an simple

read the difference between pass by value and pass by refrence then only the above change will make any sense to u.