From 16f40b701628d04aede89fb2e3b499408bc384e3 Mon Sep 17 00:00:00 2001 From: 474420502 <474420502@qq.com> Date: Thu, 18 Jul 2019 11:06:39 +0800 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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 +```