Although doubly-linked linked lists are simple to implement, I have done it so many times (in languages other than python) that I am sick and tired of doing it. Is there a something like a DLLNode class pre-defined in one of the standard python libraries?
Asked
Active
Viewed 118 times
0
Samuel Muldoon
- 1,224
- 3
- 17
-
1Possible duplicate of [Python Linked List](https://stackoverflow.com/questions/280243/python-linked-list) – Ari Cooper-Davis Nov 06 '19 at 17:25
-
3There is no doubly linked list in the standard library, although [`collections.deque`](https://docs.python.org/3.8/library/collections.html#collections.deque) can be used as a makeshift one in some cases. You're probably best off using a third party library or implementing your own; see the possible duplicate question :-) – Ari Cooper-Davis Nov 06 '19 at 17:27