Homework 5 Solutions

k is a string, you can't take the modulus of it. In a hash table you first apply the hash function to the key, and then use that to calculate the index: "int startingIndex = hash(k)%backingArraySize;"