1. Home
  2. Engineering
  3. Computer Engineering
  4. Which of the following has a time complexity of O(log n)…

Added 28 Nov 2026

Which of the following has a time complexity of O(log n) and needs a sorted array?

  1. A hash collision
  2. Dynamic programming
  3. Binary search Correct answer
  4. A doubly linked list

Correct answer

C. Binary search

MCQSEXAM

Explanation

The answer is Binary search.

Reference

Asked in: Engineering Computer Engineering Practice

https://en.wikipedia.org/wiki/Data_structure

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Engineering MCQs

Practise all Computer Engineering MCQs

Similar MCQs