Address
Whiteland, IN 46184
Work Hours
Monday to Friday: 9AM - 5PM
Weekend: 1PM - 3PM
Prerequisites
Things to be discussed are
What are doubly linked lists?
These are almost identical to Singly Linked Lists, except every node has another pointer, to the previous node.
Diagram Example
How do doubly-linked lists work?
This data structure works, in the same way, the singly linked list works. The only difference is that there is a pointer for each node that points to the previous node. So when our pointer is at a particular node, we can still go back and look at the previous data in the previous node. We cannot do this in the singly linked list data structure.
BigO of Doubly Linked Lists
Insertion – O(1)
Removal – O(1)
Searching – O(N)
Access – O(N)
Key Points About Doubly Linked Lists