robinjaiemccray13 robinjaiemccray13
  • 22-08-2019
  • Computers and Technology
contestada

Assuming we do not use recursion, why is a loop necessary to find an arbitrary node in a linked list

Respuesta :

ExieFansler ExieFansler
  • 26-08-2019

Answer:

We cannot access nodes in the linked list directly.

Explanation:

In linked list we cannot access nodes directly like arrays.In arrays we have index for the direct access to the element.So we have to iterate over the linked list and search for the node one by one.Since we are not using any recursion so we have to use loop to iterate over the linked list.

Answer Link

Otras preguntas

If [tex]f(x) = x[/tex]² [tex]-x+3[/tex], then what is the reaminder when [tex]f(x)[/tex] is divided by [tex]x+9[/tex]?
Davina travelled 500 miles in 7 days. What is the average distance travelled each day?
the most important factor in andrew jackson’s successful bid for the presidency in 1828 was his:
Solve for X please and thank you
howw does an acquired mutation in a somativ cell gene leading to cancer develipment affact a persons abilty
what comes once in a year twice in a month 4 times in a week and 6 times in a day
Two airplanes leave an airport at the same time and travel in opposite directions. One plane travels 68 km/h faster than the other. If the two planes are 5052 k
PLEASE NO LINKS AND NO NEGATIVITY
Explain why some parts of a plant can act as both a source and a sink.
Which group is the primary source of financial support that benefits all wildlife species?