A hash table of size 7 uses h(k) = k mod 7 with linear probing. The keys 15, 22, 8, 29, 36 are inserted in this order. At which index is 36 stored?
- A5
- B3
- C1
- D4
Correct answer: A
A hash table of size 7 uses h(k) = k mod 7 with linear probing. The keys 15, 22, 8, 29, 36 are inserted in this order. At which index is 36 stored?