Skip to content

Hash table with chaining

storing

Level 2 of 3

Also called Separate chaining.

Five buckets, and every number goes in the bucket of the remainder it leaves when divided by 5, so 17 goes in bucket 2. To find a number you only search its own bucket, never the others, so with the numbers spread out every search is short.

compared
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, 42, 8, -42.