1.

Can binary search be applied on a sorted linked list in O(Logn) time?(a) No(b) YesThe question was asked in an interview for job.This is a very interesting question from Search an Element in a Linked List using Recursion in division Recursion of Data Structures & Algorithms II

Answer»

Correct answer is (a) No

For EXPLANATION: Since linked list doesn’t ALLOW RANDOM access, binary search cannot be APPLIED on a sorted linked list in O(Logn) TIME.



Discussion

No Comment Found

Related InterviewSolutions