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

Which Equation represents a circle with a center located at (-2,2) and a circumference of 16(pie)
Does anybody know how to do this??? Its from the Pixel cahier d'activités page 48 (the purple one) ???
A Norman window has the shape of a semicircle atop a rectangle so that the diameter of the semicircle is equal to the width of the rectangle. What is the area o
How much is 14x22 poaster board in inches
Q. what's the best definition of financial literacy? A. the efficient and effective management of money. B. the ability to use knowledge and skills to manage fi
What is the product of 25 and a number?
I need help please my teacher is checking this tomorrow
ASAP! How does passing through clay beds affect groundwater?
what is the word equation for the reaction between magnesium and hydrochloric acid. pls help
In Mr. Hammers class 16 out of every 24 kids take a buss to school. What is the fraction of the class who rides the buss in simplest form. Next as a decimal the