from ds import Stack
from ds import Queue
from ds import MaxHeap
mystack=Stack()
mystack.push(1)
mystack.push(2)
print(mystack.peek())
print(mystack.pop())
print(mystack)
myqueue=Queue()
myqueue.enqueue(15)
myqueue.enqueue(10)
myqueue.enqueue(17)
print(myqueue.get_size())
print(myqueue.dequeue())
print(myqueue)
my=MaxHeap([95,3,21])
my.push(15)
my.push(14)
my.push(20)
my.push(18)
print(my)
print(my.peek())
print(my.pop())
print(my.peek())
print(my.pop())
print(my.peek())
print(my.pop())
-
Notifications
You must be signed in to change notification settings - Fork 0
starkk242/ds
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published