Doubly linked list

easy

In a singly linked list you cannot delete a node you are standing on - you need its predecessor. A prev pointer removes that walk, which is why LRU caches and browser history use this structure.

Best O(1) insert/delete given the nodeWorst O(n) searchSpace O(n)
Loading the doubly linked list engine…

Where to go next