# Heap & Priority Queue

- [Heapify](https://blog.yushunchen.com/algo/heap-and-priority-queue/heapify.md): ID: 130; medium
- [Top k Largest Numbers II](https://blog.yushunchen.com/algo/heap-and-priority-queue/top-k-largest-numbers-ii.md): ID: 545; medium
- [K Closest Points](https://blog.yushunchen.com/algo/heap-and-priority-queue/k-closest-points.md): ID: 612; medium; \*
- [Kth Smallest Number in Sorted Matrix](https://blog.yushunchen.com/algo/heap-and-priority-queue/kth-smallest-number-in-sorted-matrix.md): ID: 401; medium
- [Find Median from Data Stream](https://blog.yushunchen.com/algo/heap-and-priority-queue/find-median-from-data-stream.md): ID: 81; hard
- [Sliding Window Median](https://blog.yushunchen.com/algo/heap-and-priority-queue/sliding-window-median.md): ID: 360; hard
- [Trapping Rain Water II](https://blog.yushunchen.com/algo/heap-and-priority-queue/trapping-rain-water-ii.md): ID: 364; hard
- [High Five](https://blog.yushunchen.com/algo/heap-and-priority-queue/high-five.md): ID: 613; medium


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blog.yushunchen.com/algo/heap-and-priority-queue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
