Hash table with 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