Only one test case passed, rest all are failed.
Plzz check the code
Delete nodes from bst
@prashantverma.vn , there is a very small mistake
you should have node* root=NULL inside while(t–) as you need to create a new tree for every test case
corrected code : https://ide.codingblocks.com/s/242164
ohh…my bad
Thank You…