1.

What is the time complexity of the above code used to search an element in an array?

A. O(1)
B. O(n)
C. O(n<sup>2</sup>)
D. O(n<sup>3</sup>)
Answer» B. O(n)


Discussion

No Comment Found