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

Jimmy carter oversaw negotiations resulting in the promise to turn over control of the panama canal to panama true or false
Why had st. john, diana, and mary's father quarreled with their uncle john?
Geometry math question no Guessing and Please show work
How did robert boyles define an atom ?
Jenny is 13 years older than her sister myra myra is 6 years younger than her sister melody their combined age is equal to 88 years how old is myra
Are embedded in the plasma membrane and actively transport water out of the cel
Karen is planning to drive 2421 miles on a road trip. If she drives 269 miles a day, how many days will it take to complete the trip?
Identify this branch of the federal government. the congress of the united states
Find F ′(x) for F of x equals the integral from x cubed to 2 of the sine of t raised to the 4th power, dt.
Which of the following equations is a proportion?