delete(): We replace the key to be deleted with minimum infinite by calling decreaseKey(). After decreaseKey(), the minus infinite value must reach root, so we call extractMin() to remove the key.
code link: https://github.com/HarshitDolu/Heap-a...