else if(root->left == NULL) { //confusing part in deleting node with one child struct Node *temp = root; root = root->right; delete temp; }
root = node1 / \ NULL node2 / \ whatever
root = node2 / \ whatever
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)