
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Python implementation of java TreeMap. Hope similar data structure can be added to python offical library.
Python's implementation of java's TreeMap. Hope similar data structure can be added to python offical library.
$ pip install HashHeap
.$ from HashHeap import HashHeap
.
def init(self, desc=False):
'''Initalize hashheap.
:input: desc, ture for min heap, flase for max heap.
:type: bool
'''
def size(self):
'''Get the size of the hashheap.
:input: None
:type: None
:return: Size of the hashheap
:type: int
'''
def push(self, item):
'''push item into hashheap.
:input: item
:type: type of item
:return: None
:type: None
'''
def pop(self):
'''Remove and return the top of the HashHeap.
:input: None
:type: None
:return: item in hashheap
:type: type of item in hashheap
'''
def top(self):
'''Return the top of the HashHeap without remove it.
:input: None
:type: None
:return: item in hashheap
:type: type of item in hashheap
'''
def remove(self, item):
'''remove element in HashHeap in O(logn) time complexity.
:input: param
:type: dict
:return: None
:type: None
'''
Pull requests are encouraged!
FAQs
Python implementation of java TreeMap. Hope similar data structure can be added to python offical library.
We found that HashHeap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.