Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kimgajin authored Mar 12, 2024
1 parent 59b961f commit 6e0b862
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from priority_queue import PriorityQueue
def main():
pq = PriorityQueue()
pq.push("Task 1", 3)
pq.push("Task 2", 1)
pq.push("Task 3", 2)
print(pq.pop())
print(pq.pop())
print(pq.pop())
pq = PriorityQueue()

pq.push("Task 1", 3)
pq.push("Task 2", 1)
pq.push("Task 3", 2)

print(pq.pop())
print(pq.pop())
print(pq.pop())

if __name__ == "__main__":
main()
main()

0 comments on commit 6e0b862

Please sign in to comment.