A implementation of MinMaxHeap with Python language.
Project description
min-max-heap
A implementation of MinMaxHeap with Python language.
Usage
from min_max_heap import MinMaxHeap
heap = MinMaxHeap()
for i in range(100):
heap.push(i)
for i in range(50):
assert heap.pop_min() == i
assert heap.pop_max() == 99 - i
assert heap.is_empty()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
min_max_heap-1.0.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file min_max_heap-1.0.0.tar.gz.
File metadata
- Download URL: min_max_heap-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bba908e9f8fa8ac36384df149b2746b43cb0d1dec84ec94e7ebad2e2525a24d9
|
|
| MD5 |
d0fe7a4f442686c79f4849845317a2b2
|
|
| BLAKE2b-256 |
e9466366f345d7b962a055c7b213eda13a70782fa05c69d010d27ac32eda8172
|
File details
Details for the file min_max_heap-1.0.0-py3-none-any.whl.
File metadata
- Download URL: min_max_heap-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f3582f11ae104c15d638eb0430d6ee82021db5e5b8b87e5cb0a35f59cf5b2ab
|
|
| MD5 |
4896b2de08e3d1e2abea4d02b88efe43
|
|
| BLAKE2b-256 |
1b09be615cceaec8bbb4d2d2cd29107e39162162b9937dc74af484666ba0c618
|