From ed6bc75d3e189a230140cc373f22cd2a23e596a8 Mon Sep 17 00:00:00 2001 From: bt3gl <138340846+bt3gl-cryptographer@users.noreply.github.com> Date: Tue, 8 Aug 2023 20:17:28 -0700 Subject: [PATCH] Update README.md --- heaps/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/heaps/README.md b/heaps/README.md index e85cc8e..206428e 100644 --- a/heaps/README.md +++ b/heaps/README.md @@ -29,6 +29,8 @@ * common applications of heap are: sort (heap sort), getting the top-k elements, and finding the kth element. +* in python you can use `heapq.heapify(array)` with `heapq.heappush(array, value)` and `heapq.heappop()`. +
```python