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

5 - x - 2 > 3 Algebra
To order the right amount of flooring, you need to know the floor area of the living room shown below. What is that area, in square feet?
Why do European countries want to find a Sea route to Asia A. They believed they could conquer countries in Asia B. They believed land routes between Europe and
What are the general ways in which blood hormones are regulated?
find the larger consecutive integers such that the sum of twice the smallest and three times
what is the answer to this equation 5×.4x=10
Why did plantations develop in the southern colonies, but were unable to in new england? Question options: colonists in new england did not believe in growing
Which of the following sentences contains a plural personal pronoun? A. They went out into the snow together. B. Her caring made Keiko a good sister. C. K
Help Help Me plz i need these qustions to be awserd plz help me! Look at pics
I need help on this question asap hace sol.=?