What is Doubly Linked List ?
A doubly linked list is a type of linked list where each node contains a data element and two references or pointers, one pointing to the next node in the sequence and another pointing to the previous node. This allows for traversal in both directions, forward and backward, unlike a singly linked list which can only be traversed in one direction.
Why use a Doubly Linked List?
A doubly linked list is a type of data structure that allows for efficient insertion and deletion of elements at both ends. It is beneficial in scenarios where you need to traverse in both directions, and it provides greater flexibility compared to a singly linked list.