Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Division | Problems
Binary Search in Python

bookDivision

Look at the explanation of the task! How does it work?

Use hints if needed! Be careful with the tabulation!

Aufgabe

Swipe to start coding

  1. Set condition if the y equals the 0.
  2. Set the middle variable. The middle equals the left + (right - left) // 2.
  3. Return the product of the middle and the sign.
  4. Update the left. The left equals the middle.
  5. Update the right. The right equals the middle.
  6. Test the function with the x = 9 and y = 3.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 5
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Suggested prompts:

Zusammenfassen Sie dieses Kapitel

Code in file erklären

Erklären, warum file die Aufgabe nicht löst

close

Awesome!

Completion rate improved to 14.29

bookDivision

Swipe um das Menü anzuzeigen

Look at the explanation of the task! How does it work?

Use hints if needed! Be careful with the tabulation!

Aufgabe

Swipe to start coding

  1. Set condition if the y equals the 0.
  2. Set the middle variable. The middle equals the left + (right - left) // 2.
  3. Return the product of the middle and the sign.
  4. Update the left. The left equals the middle.
  5. Update the right. The right equals the middle.
  6. Test the function with the x = 9 and y = 3.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

close

Awesome!

Completion rate improved to 14.29
Abschnitt 2. Kapitel 5
single

single

some-alt