rashed8228 rashed8228
  • 15-06-2021
  • Computers and Technology
contestada


Can you help me in this question

Can you help me in this question class=

Respuesta :

tonb
tonb tonb
  • 15-06-2021

Answer:

6 2 and 0

Explanation:

This algorithm doesn't work if the list is not ordered ascending.

In this example it is not, and indeed the item "1" is never found.

first cycle: first=0, last=12 so midpoint=6

second cycle: first=0, last=5 so midpoint=2

last cycle: first=0, last=1 so midpoint=0

then last is assigned -1 so the while statement is no longer true.

Answer Link

Otras preguntas

PLZ help it’s due soon ,I will give brainlists There is a solitude of space A solitude of sea A solitude of death, but these Society shall be Compared with tha
lab safety equipment alternatives
Building muscle has which of the following effects? A. It increases the metabolic rate. B. It relieves pressure on the joints. C. It slows weight loss considera
Show how to rewrite 1/2 with the denominator 10.
Explain why Oxfordshire is an area that experiences water stress
I need help thanks so much
Which expressions are equivalent to 18x - 6? Select all that apply. 16.4x - 6+ 1.6x 2(9x 3) 319x - 2) 12x - 6 - 6x 6(3x - 1)
Calculate the interest and total amount due at the end of the loan for both simple and compound interest. Loan YearsRate(a)$1,00025%(b)$1,50056%(c)$10,0001010%(
Please help with this it’s due today
PLEASE HELP PLEASEEEEE