I think I'm confused about deletion in heaps, and since I have an exam today, I'm looking for your help to correct me.
I will post photos since it will makes it a bit more clear.
Note(forget about deleting the root)
What I understand is that , heaps only deletes the root element or the top. So, I made 2 solutions and I'm kindly asking which solution is the correct one.
Q:the heapness will be violated, I will have to replace it by the rightmost element bottom down right? (32)