Single Choice Easy

QWhat is the time complexity of a linear search in a doubly linked list?

ID: #21497 Time Complexity 108 views
Question Info
#21497Q ID
EasyDifficulty
Time ComplexityTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A O(1)
  • B O(log N)
  • C O(N)
  • D O(N^2)
Correct Answer

Explanation

A linear search in a doubly linked list has a time complexity of O(N) since it involves traversing the list sequentially.

Share This Question

Challenge a friend or share with your study group.