ques link:- https://hack.codingblocks.com/contests/c/443/1278
ans link:- https://ide.codingblocks.com/#/s/14235
plz someone help me with this i can"t problem with this code
ques link:- https://hack.codingblocks.com/contests/c/443/1278
ans link:- https://ide.codingblocks.com/#/s/14235
plz someone help me with this i can"t problem with this code
Hello Abhijeet ! , i think your code have some logical errors , you can check for the following test case
1
4
40 30 20 10
preorder of the given BST will be
40 30 20 10
but ur code is giving wrong output .
Just fix this .
If you feel any pb then go through this https://ide.codingblocks.com/#/s/14273
This will help u for sure !
Okay !! Thanks bro for ur help and time
Modified code