InterviewSolution
Saved Bookmarks
| 1. |
Differentiate between single link list and double link list |
|
Answer» The main DIFFERENCE between singly linked list and DOUBLY linked list is the ability to traverse. In a single linked list, node only points towards NEXT node, and there is no pointer to previous node, which means you can not traverse BACK on a singly linked list. On the other hand doubly linked list maintains two POINTERS, towards next and previous node, which allows you to navigatein both direction in any linked list. |
|