Displaying 1 result from an estimated 1 matches for "leftnod".
Did you mean:
leftnode
2017 Oct 03
1
Deletion in Binary Search Tree
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 function
call and then
assigning the leftnode in place of the deleted note.
Any help would be appreciated .
deletenode<-function(node,key)
{
if(identical(node,NULL)==TRUE)
{...