Is there a linked list predefined library in Python?

user2947416 picture user2947416 · Nov 3, 2013 · Viewed 20.9k times · Source

I know in c++ it already exist #include <list> Now I am curious to know if it exist in python also.

Answer

Alexander Zhukov picture Alexander Zhukov · Nov 3, 2013

You can also take a look at llist python package, which provides some useful features that deque does not. There are not only doubly linked lists, but also single linked lists data structure in that package. IMHO, one of the biggest advantages of this package is the ability to store a reference to the llist elements.