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

Fixed WSL sshd: no hostkeys available -- exiting

PowerMTA pmta command

How to fix: mv: failed to preserve ownership