my code: https://ide.codingblocks.com/s/252265
It gives segment fault. How i can fix it?
hello @princeky4
a) declare ur both array of size 1000.
b) print output for each test case in separate tree.
c) after calling deletnode function u need to receive updated root in root variable.
i.e root=deleteinbst
d) i m not sure the way u r constructing bst will match the required bst or not.
follow this method to construct tree

add cout<<"\n" in line 108. (this is to print output for each test case in separate line)