I tried to implement a function removeMin() in a min heap, which should return the minimum element present in a heap.
The code that I have written is here:
Expected output is 4 10 15 17 21 67 100.
However, the problem gives segmentation fault.
Please help