Hash table that grows
It starts with 2 slots. A number's home is its remainder when divided by how many slots there are, and if that slot is taken it looks at the next. A new number that would fill more than half the slots doubles them first, and every number moves to its new home.
- slots looked at
- 0
- numbers moved
- 0
step 1 of 1
Examples