Skip to content
Snippets Groups Projects
Commit 67d4d1da authored by paul.albuquer's avatar paul.albuquer
Browse files

Edit cours_15.md

parent 7ad83607
No related branches found
No related tags found
No related merge requests found
Pipeline #38085 passed
...@@ -1131,8 +1131,9 @@ tree_t position(tree_t tree, key_t key) { ...@@ -1131,8 +1131,9 @@ tree_t position(tree_t tree, key_t key) {
? current->right : current->left; ? current->right : current->left;
while (key != current->key && NULL != subtree) { while (key != current->key && NULL != subtree) {
current = subtree; current = subtree;
subtree = key > current->key ? current->right : subtree
current->left; = key > current->key
? current->right : current->left;
} }
} }
return current; return current;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment