Delete array of elements from bst ...not working....what's wrong with this code
@Narasimha,
I have corrected your code: https://ide.geeksforgeeks.org/VcIdlwfp4M
Errors:
- You don’t have to sort the array before constructing the bst.
- a lot of cases were missing in the deletenode function when n1.left!=null &&n1.right==null and n1.left == null && n1.right != null.
If you have any further queries, feel free to reach out to me else please mark this doubt as resolved. 
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.