We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2622bb4 commit 0787738Copy full SHA for 0787738
priority_queue_simple.py
@@ -1,6 +1,7 @@
1
# Priority Queue is an extension of the queue with following properties.
2
# 1) An element with high priority is dequeued before an element with low priority.
3
# 2) If two elements have the same priority, they are served according to their order in the queue
4
+# The delete operation has time complexity of O(n)
5
6
class PriorityQueue(object):
7
def __init__(self):
0 commit comments