In enunt zice asa: "Pentru stergerea unui nod din arbore se va folosi varianta de algoritm care sterge <b>SUCCESORUL</b>, daca nodul are ambii fii."<br>Asta ce inseamna, mai exact, ca nu se sterge nodul curent?<br>
daca am urmatorul arbore<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 20</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
/ \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">10 30</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
/ \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 25 35</span><br style="font-family: courier new,monospace;" clear="all"><br>si se cere stergerea lui 30, se sterge SUCCESORUL, adica 35?
<br>-- <br>___<br>Vlad Cananau