Identify the missing step in the removeMin method below: pu…
Identify the missing step in the removeMin method below: public E removeMin() { if (heap.isEmpty()) return null; E min = heap.get(0); int lastIndex = heap.size() – 1; // MISSING LINE HERE heap.remove(lastIndex); if (!heap.isEmpty()) { downheap(0); } return min; }