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

what is smog? could you help me... pls
Write the quadratic equation whose roots are-1 and 6, and whose leading coefficient is 4 (Use the letter to represent the variable.)?=0
what is a group of snakes called?
1. (k+7)² =2892. (2s-1)² =2253. (x-4)² =169please help me answer these :)
For which system of equations is (2, 2) a solution? A.–3x + 3y = 0x + 6y = 10B.–2x + 5y = –64x – 2y = 4C.5x – 2y = –63x – 4y = 2D.2x + 3y = 104x + 5y = 18
what is a xylophone? need help pls
Summarize the way plants store extra sugar
what are stalactites?
what is a group of snakes called?
The following 3-D object is composed of identical cubes. The volume of the 3-D object is 56cm cubed. The surface area of the 3-D object is a) 30cm squaredb) 60c