summaryrefslogtreecommitdiff
path: root/queue/priority.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2020-08-24 17:25:35 +0100
committerPaul Buetow <pbuetow@mimecast.com>2020-08-24 17:25:35 +0100
commitc8f7879655125bcbf18f41897cf3f7e7385693aa (patch)
tree9678045cd73cbcd02d9cc95e7969d580a76b3ef9 /queue/priority.go
parentb6329c9c286b09d2f974fd134cbe3029b1e4e11f (diff)
refactor
Diffstat (limited to 'queue/priority.go')
-rw-r--r--queue/priority.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/queue/priority.go b/queue/priority.go
new file mode 100644
index 0000000..86dad68
--- /dev/null
+++ b/queue/priority.go
@@ -0,0 +1,10 @@
+package queue
+
+type PriorityQueue interface {
+ Insert(a int)
+ Max() (max int)
+ DeleteMax() int
+ Empty() bool
+ Size() int
+ Clear()
+}