Which one of the following can be termed as worst case for linear search?
Element to be searched is present somewhere in the middle of the array.
Element to be searched is present at 0th index of the array.
Element to be searched is present at the last index of the array.
Element to be searched is present at the last index of the array or Element to be searched is not present in the array.
Answers
Answered by
0
i think B element to be searched is present at 0th index of the array
Answered by
0
the answer is d.since both the statements are true
Similar questions