Back to All Algorithms
Doubly Linked List
Category: Data Structures | Time: O(n) Search | Space: O(n)
Visualization
Visual representation of the data structure
Enter commands to build the doubly linked list.
About Doubly Linked List

A Doubly Linked List is a type of linked list where each node contains a data field and two pointers: one to the next node in the sequence (next pointer) and one to the previous node (prev pointer). This bidirectional linking allows for traversal in both directions.

Code Editor
The code is for reference. Editing it won't affect the visualization.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Frequently Asked Questions
About Doubly Linked List