Ques:-Fixing two nodes in BST
ques link :-https://www.geeksforgeeks.org/fix-two-swapped-nodes-of-bst/
Solution Ide:-https://ide.geeksforgeeks.org/H4mEp1s6LY
Getting segmentation fault
Actually th full code is not possible to share as i have to fill the function only
@manikjindal49 it seems like you have written the same code on gfg .
have you compared your code with that code ?
Yes after that i ahve compared it thats why i am asking why is it getting wrong
hello @manikjindal49 try to submit your code here :
https://practice.geeksforgeeks.org/problems/fixed-two-nodes-of-a-bst/1
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.