Ask Question
24 July, 23:14

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

+1
Answers (1)
  1. 25 July, 00:59
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers