Professional KnowledgeHardIBPS SO IT

The time complexity of inserting at the head of a singly linked list is:

  1. A. O(n)
  2. B. O(1)
  3. C. O(log n)
  4. D. O(n log n)

Correct answer: B. O(1)

Only a couple of pointer updates are needed.

More IT Officer Professional Knowledge (IBPS SO) questions

Exams that ask this topic