Jump to content

Linked list: Difference between revisions

m
Complexity of list operations mentioned
m (Added wikipedia-style bolding and data structures link)
m (Complexity of list operations mentioned)
Line 5:
==Singly-Linked List==
 
A singly-linked list allows traversal in one direction, forward. To this end, each data element contains a reference to the next data element in the sequence. Single-linked list has [[O]](1) insertion time and [[O]](n) removal time.
 
===See also===
Line 16:
==Doubly-Linked List==
 
A doubly-linked list allows traversal in two directions, forward and back. To this end, each data element contains references to both the previous and next elements. Doubly-linked list has [[O]](1) removal and insertion times. Further, these operations do not require the list head.
 
===See also===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.