1.

Which of the following methods can be used to search an element in a linked list?(a) Iterative linear search(b) Iterative binary search(c) Recursive binary search(d) Normal binary searchI got this question in an online quiz.The query is from Search an Element in a Linked List using Recursion topic in division Recursion of Data Structures & Algorithms II

Answer» CORRECT option is (a) Iterative linear search

To explain: Iterative linear search can be used to search an element in a LINKED list. Binary search can be used only when the list is SORTED.


Discussion

No Comment Found

Related InterviewSolutions