Build binarysearch tree

https://ide.codingblocks.com/s/170213 sir what te problem in my code?? please check

hey @guptaaman155, your logic is wrong, you code is reading the value of N in each recursive call. So you need to split it into two function one for reading one for insertion.
Here are changes you should make https://ide.codingblocks.com/s/56649

sir there is also a getting a wrong answer by your code

hey @guptaaman155, query is answered in chat section