Skip to content

Commit 0787738

Browse files
author
Amogh Singhal
authored
Update priority_queue_simple.py
1 parent 2622bb4 commit 0787738

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

priority_queue_simple.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Priority Queue is an extension of the queue with following properties.
22
# 1) An element with high priority is dequeued before an element with low priority.
33
# 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)
45

56
class PriorityQueue(object):
67
def __init__(self):

0 commit comments

Comments
 (0)