Homework 5 Solutions

Only do this if new item actually gets added. It might not because the key might already be present in the hash table. Also, may need to update numRemoved if you re-use a space that has isDel set to true.