Data Structure Linked Lists

⚠ Report ✓ Question Verified Copy Link

Q: What is the time complexity of deleting an element from a singly linked list?  


  • A It can only be traversed in one direction.
  • BIt cannot be circular.
  • CIt has better cache locality than a singly linked list.
  • DIt can be traversed in both directions.
  • AO(1)
  • BO(n)
  • CO(log n)
  • DO(n log n)
  • AImplementing a queue or stack
  • BImplementing a graph
  • CImplementing a hash table
  • DImplementing a string

Learn More MCQ Questions from Data Structure Linked Lists