|
|
back to threadCommon BoardReply to message- Messages should be written in English and correspond to the matter of the website.
- Messages should not contain offences and obscene words.
- Messages should not contain correct solutions.
Re: Двоичное дерево поиска: не могу найти ошибку в функции, которая удаляет вершину. Помогите пожалуйста. I have found one mistake and then stopped reading. If val==root key, you are assigning root=NULL. root is a not root of your tree, root is just a copy. So you are assigning NULL to a copy of a node to your tree, not a real node.
|
|
|