Solveeit Logo

Question

Computer Science Question on Searching

How many minimum number of comparisons are required to search an element from 'n' elements in Linear Search?

A

1

B

n - 1

C

n

D

n + 1

Answer

1

Explanation

Solution

In the best case for linear search, the target is the first element, requiring only 1 comparison.