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

	position = currentNode.getKey()%capacity;

	return position;
}
Ejemplo n.º 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;
}
Ejemplo n.º 3
0
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;
}
Ejemplo n.º 4
0
int HashTable<Type> :: findTablePosition(HashNode<Type> currentNode)
{
    int position = 0;
    
    position = currentNode.getKey() % tableCapacity;
}