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

Can someone please help me on this question!
which fraction has a value thats equal to 7/8
9/13 in simplest form
definition about allusion
i just need This done u will get 105 points if u do this plsPLEASE HELP!!!!!This is for the story Cold EquationsTo fill the chart in: 1. Ask yourself FIVE diffe
One scientist discovered a new theory on the evolution of the universe. What is the next step for the scientist to take?
Describe a situation that could be modeled whit the ratio 4:1.
According to Kate what is the secret of perfect popcorn popping
El café con leche mío está caliente.
Erin received the following scores on her last four spelling tests. 2125, 82%, 0.8, 1720 2125, 82%, 0.8, 1720 Which of these is Erin's highest score?