Hipster
Hipster provides a simple implementation of the MinHeap and MaxHeap. The object being added to the respective heaps need to implement the comparator logic. The APIs are identical for MinHeap and MaxHeap
Usage
pip install hipsterfrom hipster.heap import MaxHeapmax_heap = MaxHeap()max_heap.push(item)r = max_heap.peek()# Returns the item without popping it off the heapr = max_heap.pop()# Returns the item and pops it off the heap
Metadata
Release files for hipster 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hipster-1.0.2.tar.gz | 1.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hipster-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.5 kB
Release files / hipster-1.0.2.tar.gz
| Download URL | hipster-1.0.2.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2699e0ead0750c781f123f557d5a39190485df1dda1a8eb8f4972b05a80948d5
|
|
BLAKE2b-256 checksum How to use checksums |
3fbe7f00f25fba3dd7e98e82361607e3e5a924ea0796e738422d9af391c272a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5rc1
|
Release files / hipster-1.0.2-py3-none-any.whl
| Download URL | hipster-1.0.2-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c895f1183207118fb2d221845c350c2569b92251a994276f4b747e3220caee9d
|
|
BLAKE2b-256 checksum How to use checksums |
35ca89a2981f28bb3a03c51af1360c0f6da7e6124a63f1ee2dcf7f7f932cc996
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5rc1
|