Re re correction recherche
1 unresolved thread
1 unresolved thread
Je crois qu'il faut remettre le premier état que j'avais proposé pour la recherche de parent, sinon on retourne un arbre null (on ne s'arrête que après avoir affecté nouveau à courant lorsque nouveau est null). Pour le code de recherche, j'ai enlevé la condition !success qui me semblait superflue.
Merge request reports
Activity
917 922 tree_t position(tree_t tree, key_t key) { 918 923 tree_t current = tree; 919 924 if (NULL != current) { 920 tree_t subtree = key > current->key ? current->right : 925 subtree = key > current->key ? current->right : changed this line in version 2 of the diff
added 6 commits
-
a7590807...3e4713b8 - 3 commits from branch
master
- 8a127afa - add type
- 53b9a6e4 - Merge branch 'master' into pk
- 5aeca225 - ca devrait etre bon
Toggle commit list-
a7590807...3e4713b8 - 3 commits from branch
mentioned in commit 53ad04f9
Please register or sign in to reply