I AM SO CONFUSED. I’ve read the conceptual part of heaps in python several times now and I for the life of me can never figure out the correct answers to the heapifying up or down process on the quiz. Every time I think I understand it I select and answer and I’m wrong.
It even seems that there are two answers that are saying the same thing like “If the parent is greater than the child, swap them” and the other one saying “If the child is less than the parent, swap the two” and I always choose the wrong one.
and then the whole time I’m trying to figure out the process for min-heaps and then it throws the completely opposite question at me asking about heapifying up with a max-heap. Does this confuse anyone else or am I going insane???
Here is the link to the test: