Re: [R] Deletion in Binary Search Tree

2017-10-03 Thread Bert Gunter
"I am unable to complete the R code for deleting nodes in a binary search tree." What does this mean? What errors did you receive or what did or did not happen with your current code? With what code was the tree built? Also, this smells like homework. We do not do homework (or try not to) on this

[R] Deletion in Binary Search Tree

2017-10-03 Thread Karthiko S
Dear All, I am unable to complete the R code for deleting nodes in a binary search tree. Have provided the code snippet below for an usecase where the node to be deleted would have a leftnode and no rightnode. I am stuck up at how to release the node pertaining to the key value given by the funct