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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cad31db799cda158c8e3cf7d7a644c54a9b34af76206be431ecc1e7a01725d9 |
|
MD5 | 0afa3e9d55331712dca2e2774d77be9c |
|
BLAKE2b-256 | 9ee6ecea6a6ba8367741de7541eefe64b8af91a19e8c4a97af74f5777adec95c |
Close
Hashes for doubly_py_linked_list-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93742f18450492e1a50695297f1f4c243c67582f0b8aeac852baf97130371484 |
|
MD5 | ffb0d50c50e98d3e3117ec59c42207aa |
|
BLAKE2b-256 | 63595f99ccf362fe5032ffcbdd80c3505731b7401f4a7803e16f032dd1f8fd8d |