Computer Science Canada Binary Search Trees |
Author: | klopyrev [ Sat Mar 24, 2007 8:44 am ] | ||||
Post subject: | Re: Binary Search Trees | ||||
Like you said, to delete a node, you need to find the largest child smaller than it. So, you would go right of the target and immediately after, go left. Your code continues to go right until it finds a null right node.
I didn't read the entire code, but perhaps that should be
Hope that helps. KL |