Division
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Tâche
Swipe to start coding
- Set condition if the
yequals the0. - Set the
middlevariable. Themiddleequals theleft + (right - left) // 2. - Return the product of the
middleand thesign. - Update the
left. Theleftequals themiddle. - Update the
right. Therightequals themiddle. - Test the function with the
x = 9andy = 3.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 5
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Suggested prompts:
Résumer ce chapitre
Expliquer le code dans file
Expliquer pourquoi file ne résout pas la tâche
Awesome!
Completion rate improved to 14.29
Division
Glissez pour afficher le menu
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Tâche
Swipe to start coding
- Set condition if the
yequals the0. - Set the
middlevariable. Themiddleequals theleft + (right - left) // 2. - Return the product of the
middleand thesign. - Update the
left. Theleftequals themiddle. - Update the
right. Therightequals themiddle. - Test the function with the
x = 9andy = 3.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 5
single