Doubly-linked list/Definition
Doubly-linked list/Definition
You are encouraged to solve this task according to the task description, using any language you may know.
You are encouraged to solve this task according to the task description, using any language you may know.
Define the data structure for a complete doubly-linked list.
- The structure should support adding elements to the head, tail and middle of the list.
- The structure should not allow circular loops