Computer Science, asked by navien340, 1 year ago

Write an algorithm to delete an element from a binary search tree

Answers

Answered by pornimv
3
Algorithm
1. Starting at root, find the deepest and rightmost node in binary tree and node which we want to delete.
2. Replace the deepest rightmost node’s data with node to be deleted.
3. Then delete the deepest rightmost node.
Similar questions