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

Which two elements will most likely form an ionic bond?
Which is 2logx - 6 log(x-9) written as a single logarithm.
I will give brainliest to the best answer!! Please help!
Why did president woodrow wilson originally argue against being too punitive with germany after the war? Did he win that argument? Why or why not.
The figure above shows results from a pulse chase experiment immediately after the chase
Please help with math.
Complete the point-slope equation of the line through (-8,-1) and (-6,5) y-5=
Describe the relationship between nutrients and calories.
How do I find the volume
Which of the following graphs below represents the motion of an object at variable speeds?