Yûki - Update Insert and rename rechercher fct

This commit is contained in:
name 2019-12-13 00:26:12 +01:00
parent 5e43344955
commit 959f1b5938
No known key found for this signature in database
GPG key ID: 03E8F3CF3183323A
5 changed files with 58 additions and 38 deletions

View file

@ -68,7 +68,7 @@ void free_arbre(arbre a)
}
}
char *rechercher (arbre a, char c, char*s)
char *arbre_rechercher(arbre a, char c, char*s)
{
if (racine(a)==c)
{
@ -76,10 +76,10 @@ char *rechercher (arbre a, char c, char*s)
}
if (!est_arbre_vide(fils_gauche(a)))
{
rechercher (fils_gauche(a),c,s+'0') ;
arbre_rechercher(fils_gauche(a),c,s+'0') ;
}
if (!est_arbre_vide(fils_droit(a)))
{
rechercher (fils_droit(a),c,s+'1') ;
arbre_rechercher(fils_droit(a),c,s+'1') ;
}
}