Single Choice Easy

QWhat is the time complexity of inserting an element at the beginning of a doubly linked list?

ID: #5672 Linked Lists 182 views
Question Info
#5672Q ID
EasyDifficulty
Linked ListsTopic

Choose the Best Option

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

  • A O(1) ✔ ✖
  • B O(n) ✔ ✖
  • C O(log n) ✔ ✖
  • D O(n log n) ✔ ✖
Correct Answer

Explanation

O(1)

Share This Question

Challenge a friend or share with your study group.