Delete node from BST


This code is no able to pass all the test cases!
please help

Hey! you have declared an array of size m and you are accessing it as A[m] which result in out of bound access. Make it A[i].

it still does not resolve my issue

There is a small mistake in the code, in the main function you forgot to update the root after calling for deleteFunc, modify the line.
root=deleteInBST(root, A[j]);