Conversation
anselrognlie
left a comment
There was a problem hiding this comment.
💫 Overall, a nice implementation, Sarah. For the comprehension questions, we can say that a heap is weakly ordered. There is an ordering property, but it's less strict that the left-right ordering of a BST. And while we could use a linked list for our implementation, this would be much less efficient, since we could not access elements directly via index.
The implementation of heap_down appears to share some code with the instructor solution. As such, I don't feel I can fully evaluate your approach to that implementation. As a result, I am giving the overall implementation a yellow. Yellow does not require a resubmission.
Please let me know if you'd like to discuss this further, or feel free to submit a new implementation for heap_down and I'll re-evaluate.
🟡
Heaps Practice
Congratulations! You're submitting your assignment!
Comprehension Questions
heap_up&heap_downmethods useful? Why?