Scott McCartney's 07_Heap_Lab

Won't this give an infinite loop? Won't numItems increase each time you call add()?

You could just do backingArray[i] = tempArray[i]. Unlike with Hash Table items don't move around after growing, so this would work fine.