> For the complete documentation index, see [llms.txt](https://longxingtan.gitbook.io/mle-interview/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://longxingtan.gitbook.io/mle-interview/01_leetcode/15_tree_map.md).

# tree map

* In python, you may use [sortedcontainers](https://grantjenks.com/docs/sortedcontainers/) library.

```python
from sortedcontainers import SortedList
```

* JAVA can use TreeSet or TreeMap.
