Digital Marketing

Python example code of heap data structure

[ec2-user@dockers git]$ python heap-example.py 
The created heap is : 
[2, 5, 9, 6, 8]
The modified heap after push is : 
[2, 5, 3, 6, 8, 9]
The popped and smallest element is : 
2

Comments

Popular posts from this blog

Make online money from the Internet