http://fullstackprep.dev/articles/dsa/datastructure/applications-of-heaps