Home / Engineering / Data Structure (DS) / Question

M

Mr. Dubey • 51.43K Points
Coach

Q.) The Worst case occur in linear search algorithm when_____________.

(A) item is somewhere in the middle of the array.
(B) item is not in the array at all.
(C) item is the last element in the array.
(D) item is the last element in the array or is not there at all.
Correct answer : Option (D) - item is the last element in the array or is not there at all.

Share

Discusssion

Login to discuss.