Professional Documents
Culture Documents
LIST
Chandani Bhasin
NODES IN DLL
• Nodes contain 3 parts:-
– Value
– Pointer to next variable
– Pointer to previous variable
Advantages of DLL
• Can be traversed in two directions
– Forward and backward
• Add nodes at 4 places
– At the beginning
– At the end
– Before a given node
– After a given node
Disadvantages of DLL
• Occupies more space
• Since there are 2 pointers.