What is Linked List?
Can you do random searching?
No, we don’t have random access like an array. So, we start at the head node and iterate through each node until we find it or reach the end of the list.
What is the time complexity?
In worst case scenario, the Time complexity is O(n) and n is the number of items in the list.
two primary methods
push, pop
helper methods
index(), remove(), false(bool)=isEmpty
What is doubly linked list good for?
to remove nodes as they provide access to the previous and the next nodes.
How to remove an item in singly linked list?
iterate through the list and keep track of the previous node