Single Choice Easy

QWhat is the time complexity of reversing a linked list?

ID: #5682 Linked Lists 202 views
Question Info
#5682Q 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(n)

Share This Question

Challenge a friend or share with your study group.