Skip to main content

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

Installation

Use pip to install the module

  • pip install hipster

Usage

  • >>> from hipster.heap import MaxHeap
  • >>> max_heap = MaxHeap()
  • >>> max_heap.push(6)
  • >>> max_heap.push(9)
  • >>> max_heap.push(3)
  • >>> max_heap.peek()
  • >>> 9
  • >>> max_heap.pop()
  • >>> 9
  • >>> max_heap.pop()
  • >>> 6
  • >>> max_heap.clear()

Metadata

Release files for hipster 1.0.4

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

Source distribution (sdist)

Source distribution for hipster 1.0.4
File Size Uploaded
hipster-1.0.4.tar.gz 1.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hipster 1.0.4
File Interpreter ABI Platform
hipster-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 4.6 kB

Release files / hipster-1.0.4.tar.gz

Download URL hipster-1.0.4.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c220315cf829a9eb21a34cc9c51deb3d86a39a8d3ae6f1fe4b3bab46931507f8
BLAKE2b-256 checksum
How to use checksums
b104986a1af2169164c447a77ccc2a0238c428e72761613600a10d635f7b0486
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.4-py3-none-any.whl

Download URL hipster-1.0.4-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
157b48bf8ee50d7ba807db7d68b6e1e9603287093c7bd997cbc8519451a72dfe
BLAKE2b-256 checksum
How to use checksums
98a65aeedd0d3b4686b61ed68f4c9e9181803d5946ef6fdc215cf476564be792
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 history Release notifications | RSS feed

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.6

2 release files

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.5

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