Ask Question

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

+1
Answers (1)
  1. 8 February, 15:07
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Assuming we do not use recursion, why is a loop necessary to find an arbitrary node in a linked list ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers