int CTECHashTable<Type>:: findPosition(HashNode<Type> currentNode){
	int position = 0;

	position = currentNode.getKey()%capacity;

	return position;
}
Beispiel #2
0
int HashTable<Type> :: findPosition(HashNode<Type> currentNode)
{
    //We are going "hash" the key of the HashNode to find its value.
    int position = 0;
    
    position = currentNode.getKey() % capacity;
    return position;
}
int CTECHashTable<Type>::findTablePosition(HashNode<Type> currentNode)
{
	//We are going to "hash" the key of the hashnode to find its storage spot.
	int position = 0;

	position = currentNode.getKey() % tableCapacity;

	return position;
}
Beispiel #4
0
int HashTable<Type> :: findTablePosition(HashNode<Type> currentNode)
{
    int position = 0;
    
    position = currentNode.getKey() % tableCapacity;
}