Update README.md

This commit is contained in:
474420502 2019-07-18 11:06:39 +08:00 committed by GitHub
parent a43444fba4
commit 16f40b7016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,12 @@
# structure
暂时没时间整理, 后期才整理完整
## PriorityQueue
``` golang
pq := pqueuekey.New(compare.Int)
pq.Push(1, 1)
pq.Push(2, 2)
v = pq.Pop() // v = 2
```