diff --git a/README.md b/README.md index a482f65..ee47fe6 100644 --- a/README.md +++ b/README.md @@ -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 +```