previous
|
start
|
next
Solutions
Pick a reasonable array size and reduce the hash codes to fall inside the array
int h = x.hashCode(); if (h < 0) h = -h; h = h % size;
When elements have the same hash code:
use a link sequence to store multiple objects in the same array position
These link sequences are called buckets
previous
|
start
|
next