Each outcome is backed by the checks that test it. Solid means every check was right first time; with hints means you got there with a nudge; worth a revisit means an answer was revealed or is still wrong.
1
Explain what a priority queue is for, and say why a sorted list costs O(n) for one of its two operations while a heap does both in O(log n).
Not yet
2
Read a heap array as a tree: find the children and parent of any index with 2i + 1, 2i + 2 and (i − 1) ÷ 2, say why a complete tree needs no pointers, and tell a heap from a binary search tree.
Not yet
3
Follow a push: add the value at the end, then swap it upward, and name the index where it ends up.
Not yet
4
Follow a pop: take the root, move the last value to the root, then swap it downward, and write the array afterwards.
Not yet
5
Say what peek, push, pop and heap sort cost, and why a complete tree is only about log n levels tall.
Not yet
6
Use Python's heapq and Java's PriorityQueue correctly: keep a priority with each item, get the largest first, and know the two things neither gives you.
Not yet
Your cheat sheet
What each lesson leaves you able to do, in one place. Lessons you have not finished are dimmed, not hidden.