Skip to main content

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()

Metadata

Release files for min-max-heap 1.0.1

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

Source distribution (sdist)

Source distribution for min-max-heap 1.0.1
File Size Uploaded
min_max_heap-1.0.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for min-max-heap 1.0.1
File Interpreter ABI Platform
min_max_heap-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / min_max_heap-1.0.1.tar.gz

Download URL min_max_heap-1.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f4302dbb85431d0e359dcaa0c1cdb2cc58f6b7abd419c277cfbbca382cacde41
BLAKE2b-256 checksum
How to use checksums
5c65f8cf0c27b273b0c1f21f45b46da2ad26b110e98ea8376effe42ced6f49d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / min_max_heap-1.0.1-py3-none-any.whl

Download URL min_max_heap-1.0.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cdd79c40f951600c4d0f4106eebca91d7e0f04442d1ee7da169f1b13ff257b37
BLAKE2b-256 checksum
How to use checksums
03b3503c0d10c03dbf1be0f9d02063e015dd425021877a3fe8fafbb5e9a4de7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.0.1 This release

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