Linked List

Linked List #

Singly Linked List #

OperationTime ComplexityNote
AccessO(n)No random access
SearchO(n)
InsertionO(1)Assuming you already have a reference to the node at the desired position
DeletionO(1)Assuming you already have a reference to the node at the desired position

Doubly Linked List #

OperationTime ComplexityNote
AccessO(n)No random access
SearchO(n)
InsertionO(1)Assuming you already have a reference to the node at the desired position
DeletionO(1)Assuming you already have a reference to the node at the desired position

Queues #

OperationTime Complexity
EnqueueO(1)
DequeueO(1)