What is the worst-case time complexity of the linear search algorithm for an…
Bihar STET · PGT (Paper 2) · Computer Science · 2024
What is the worst-case time complexity of the linear search algorithm for an array of size "n"?
- A.
O(log n)
- B.
O(n)
- C.
O(n^2)
- D.
O(1)
Attempted by 25 students.
Show answer
Correct answer: B
Explore the full course: Bihar Stet Paper Ii Computer Science
Loading lesson…