When local edits take constant time

A playback service stores nn items in a doubly linked list with head, tail, and a stored length. The list has no extra boundary nodes. Each node stores next and prev references.


An operation takes constant time, written O(1)O(1), when its number of basic operations is bounded independently of nn. Count link work only; assume allocating or releasing one node takes constant time. Reversing the list means changing its actual links so traversal through next gives the reversed order.


Which statements are true? Select all that apply.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Doubly Linked Lists Questions: