summaryrefslogtreecommitdiff
path: root/pkg/priority_queue/interface.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-05 11:52:03 +0300
committerValery Piashchynski <[email protected]>2021-07-05 11:52:03 +0300
commit1dd43e378c55b6984bda6c2e8b048d2ed821aa43 (patch)
treed7167b35ea675696d4cf2ef2b76d1ecdda98a0f9 /pkg/priority_queue/interface.go
parent677db79f76fcc566bee2b1b51d0f40a0c9f2ac19 (diff)
- Finish binary_heap
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/priority_queue/interface.go')
-rw-r--r--pkg/priority_queue/interface.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/priority_queue/interface.go b/pkg/priority_queue/interface.go
index 45430486..3cc1d575 100644
--- a/pkg/priority_queue/interface.go
+++ b/pkg/priority_queue/interface.go
@@ -1,8 +1,8 @@
package priorityqueue
type Queue interface {
- Push(item PQItem)
- Pop() PQItem
+ Insert(item PQItem)
+ GetMax() PQItem
}
type PQItem interface {