Doubly linked list implementation in Python
Project description
Doubly (Py) Linked List 1️⃣ ↔️ 2️⃣ ↔️ 3️⃣
A module that implements doubly linked lists in python
Example
python -m pip install doubly_py_linked_list
from doubly_py_linked_list import doubly_py_linked_list as dll
d = dll()
node_1 = d.insert_tail(1)
node_2 = d.insert_head(2)
node_3 = d.insert_tail(3)
node_4 = d.insert_tail(3)
for v in dll:
print(v)
d.move_to_head(node_3)
d.move_to_tail(node_1)
l = list(d)
d.remove(node_1)
d.remove(node_2)
d.remove(node_3)
d.remove(node_4)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for doubly_py_linked_list-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c75d7141896f4f078638be7a53ae74fc43b830b9e95f67632891b024cbf736be |
|
MD5 | 25af009dee6601f49d0cf7587a7c994b |
|
BLAKE2b-256 | c594270c729c0f322de0832dfb15f2c504637136c1b8bbaeed00643c4f6c08e8 |
Close
Hashes for doubly_py_linked_list-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff010bd5cc50e225f8d5a120cc6159284b5213e91b219b5e35041be0dcff0d02 |
|
MD5 | 9329c9298929617e2241b4cb7c128b65 |
|
BLAKE2b-256 | e4ef7db3fada0e49481f9078864cb674a528406709b107caa754d0ef32a560fb |