Skip to content
Snippets Groups Projects
Commit 0c69c296 authored by Belkacemi Melissa's avatar Belkacemi Melissa
Browse files

indice_dicho

parent f1d1c050
Branches
No related tags found
No related merge requests found
......@@ -52,14 +52,6 @@ def indice_seq(elem: C, liste: list[C], comp: Callable[[C, C], int]) \
elif comparaison==-1:
i=len(liste)
return(trouve,i)
def compare(x, y):
if x == y:
return 0
elif x < y:
return -1
else:
return 1
def indice_dicho(elem: C, liste: list[C], comp: Callable[[C, C], int]) \
-> tuple[bool, int]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment