Skip to main content

Doubly (Py) Linked List 1️⃣ ↔️ 2️⃣ ↔️ 3️⃣

CI License

A module that implements doubly linked lists in python

Example

python -m pip install doubly-py-linked-list
>>> from doubly_py_linked_list import DoublyLinkedList as dll
>>> d = dll([1, 2, 3, 4])
>>> d
1 <-> 2 <-> 3 <-> 4
>>> node_0 = d.insert_head(0)
>>> node_5 = d.insert_tail(5)
>>> for v in d:
...     print(v)
...
0
1
2
3
4
5
>>> d.move_to_head(node_5)
>>> d.move_to_tail(node_0)
>>> list(d)
[5, 1, 2, 3, 4, 0]
>>> d.pop_head()
5
>>> list(d)
[1, 2, 3, 4, 5, 0]
>>> d.pop_tail()
0
>>> list(d)
[1, 2, 3, 4]
>>> d.nodes()
[ddl_node(1), ddl_node(2), ddl_node(3), ddl_node(4)]

Release files for doubly-py-linked-list 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doubly-py-linked-list 1.1.2
File Size Uploaded
doubly_py_linked_list-1.1.2.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for doubly-py-linked-list 1.1.2
File Interpreter ABI Platform
doubly_py_linked_list-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / doubly_py_linked_list-1.1.2.tar.gz

Download URL doubly_py_linked_list-1.1.2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e8247ec6e2a453ff37add8096e8522f1c5f983df77b0e011bb59f62a89f6c5cf
BLAKE2b-256 checksum
How to use checksums
ff361d6e00bbf5a62febad9268d7a5658531d7c63fd686e83018d2e097c65780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Release files / doubly_py_linked_list-1.1.2-py3-none-any.whl

Download URL doubly_py_linked_list-1.1.2-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9b17bd1a1407e88d55bd980fc4cada076362554e7c8fad4c2259ced12500d64
BLAKE2b-256 checksum
How to use checksums
ccb023f4edabfba4099770a53534b44dcdc69914dd74c7e900ec12aefe6bbb30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page