Solution: Heaps

See the solution that implements the remove(i) method in the binary heap.

We'll cover the following...

Task

Here is the task that implements the remove(i) method, that removes the value stored in a[i] in a BinaryHeap. This method runs in O(logn)O(\log n) ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy