Tools / Data structures Interview questions
Mention a few use cases of a doubly linked list.
Any application where you want to traverse both sides from a specific point may leverage doubly-linked lists.
- Doubly linked list is used in constructing MRU/LRU (Most/Least Recently Used) cache.
- The browser cache that allows you to hit the BACK-FORWARD pages.
- Undo-Redo functionality.
- A music player which has next and prev buttons.
More Related questions...