How can I delete a element in generic tree in java

How to implement delete node method in java for deleting node of generic by a key value

hello @nitinchoudhary260

i can only help u with logic .
the idea is to replace the key(to be deleted) with any leaf value.
and then delete that leaf

Okk thanks for the help

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.