1if loadFactor >= threshold: rehash
2newTable = createTable(newCapacity)
3for oldIndex from 0 to oldCapacity - 1:
4 if oldTable[oldIndex] is empty: continue
5 newIndex = hash(key) % newCapacity
6 while newTable[newIndex] is occupied: probe next
7 newTable[newIndex] = entry
8 advance oldIndex
9return newTable
No pseudocode line selected.