ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to thread

Common Board

Reply 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: Двоичное дерево поиска: не могу найти ошибку в функции, которая удаляет вершину. Помогите пожалуйста.
Posted by Mahilewets 15 Jul 2017 08:50
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.


JUDGE_ID
Subject