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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b65161f326c4ccb146f7c5f639312284f67b019bd05e4285a8556af836dd208d |
|
MD5 | 25b55e584d99b44f19b3e3142616237c |
|
BLAKE2b-256 | 0a84d29f273bfda718b3a8e611386c0d2a9236b59f7955f25bea3fba783b572f |
Close
Hashes for doubly_py_linked_list-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f4707ccb438a0774ac0edd0e040afe70e6a8d03679b003d86f102c9494a6cbb |
|
MD5 | 87df859e58ebfa00f7eb86551a1d31ed |
|
BLAKE2b-256 | c02b3cd620d6278bdc0ce1d14dac41025b8882c8ad8ee585f185764408716481 |