Skip to content

Hash table with open addressing

storing

Level 2 of 3

Also called Linear probing.

Seven slots in a row, one number each. A number's home is the slot of the remainder it leaves when divided by 7; if that slot is taken, it tries the next, and the next, round to the start. A number taken out leaves a marker, so later searches walk past it.

slots looked at
0

step 1 of 1

Examples

A number from 1 to 99 puts it in, and a dash before a number takes that number out. Up to 12 of them, separated by commas or spaces, for example 17, 24, 9, -24.