Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Division | Problems
/
Binary Search in Python
セクション 2.  5
single

single

bookDivision

メニューを表示するにはスワイプしてください

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

Use hints if needed! Be careful with the tabulation!

タスク

スワイプしてコーディングを開始

  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.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  5
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt