Correct Answer - Option 2 : O(d) but not O(1)
STEPS:
1) delete (i) will delete the element at ith index in the binary heap in O (1) time.
2) But, we have to fill the empty position with the last node of the heap.
3) Last node of the heap can be easily found in O (1) time and replace empty position with this node.
4) After this, there is need to heapify the binary heap which will take O (depth of heap tree).
5) Depth of heap tree is log n if n is number of elements in the heap.
6) But, in question it is given that depth is d. So, this delete (i) will take O (d) time not O(1)