int hashKey(int key)
{
return key % tableSize;
}
void insertar(int key)
{
int index = hashKey(key);
while (hashTable[index] != NULL)
{
hashTable[index] = key;
index++;
}
}
i'm trying to add values to this hash table array, but i"m having trouble trying to make it. I already initialized the hash table to NULL but i don't know how to add the values and validate that the space has already a value in it.