Doubly-linked list/Element definition: Difference between revisions

Content added Content deleted
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header.)
Line 1: Line 1:
{{task|Data Structures}}
{{task|Data Structures}}

Define the data structure for a [[Linked_List#Doubly-Linked_List|doubly-linked list]] element. The element should include a data member to hold its value and pointers to both the next element in the list and the previous element in the list. The pointers should be mutable.
;Task:
Define the data structure for a [[Linked_List#Doubly-Linked_List|doubly-linked list]] element.

The element should include a data member to hold its value and pointers to both the next element in the list and the previous element in the list.

The pointers should be mutable.



{{Template:See also lists}}
{{Template:See also lists}}
<br><br>

=={{header|Ada}}==
=={{header|Ada}}==
<lang ada>type Link;
<lang ada>type Link;