Solved

If an Element Is Present in an Array of Length

Question 35

Multiple Choice

If an element is present in an array of length n, how many element visits, on average, are necessary to find it using a linear search?


A) n / 2
B) 2n
C) n
D) n2

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions