Could not getting the correct result

Although the code seems correct to me, still could not getting the correct results. please tell me where the bug is in my code.

Here is my code.

hello @swastikswarupmeher
build a normal bst by inserting each array element one by one and then perform deletion (u r building balanced bst which may have different structure and hence different output)

1 Like

@aman212yadav ohh okay, let me try.

@aman212yadav that’s worked for me. thanks :slight_smile: