Returns the number of elements currently in the heap.
Inserts a value into the min heap. This operation places the value at the end of the heap and then performs the bubble-up operation to maintain the min-heap property, ensuring that each parent node is less than or equal to its children.
The value to insert into the heap.
Class representing a Min Heap data structure. A Min Heap is a complete binary tree where the value of each node is less than or equal to the values of its children. The root of the tree (the minimum element) can be efficiently accessed or removed, while maintaining heap order.