Professional Documents
Culture Documents
Declaration:: L.head NULL L.tail NULL
Declaration:: L.head NULL L.tail NULL
:
Struct node
{
int val;
struct node* next;
struct node* prev;
};
typedef struct {
struct node* head;
struct node* tail;
} DLL;
Initialization:
L.head = NULL;
L.tail = NULL;