AlgoExpert Flashcards

1
Q

What is the approach to delete a node which has both left and right nodes?

A

Identify the smallest value in the right subtree. Then replace the value of node to be deleted with this value. Then delete this node (Identified node).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly