Skip to content

Instantly share code, notes, and snippets.

@GopherJ
Created June 7, 2018 16:48
Show Gist options
  • Save GopherJ/296881a1a3143fb53615454ba24ef547 to your computer and use it in GitHub Desktop.
Save GopherJ/296881a1a3143fb53615454ba24ef547 to your computer and use it in GitHub Desktop.
## 最小堆
应用场景:
- 从数据中找出出现次数最多的n个元素
结构:
- 采用树形结构且每个结点的值都比两个子节点的值
时间复杂度:
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment