Question DSA-HASH-0015
HardA hash table uses double hashing with h₁(k) = k mod 7 and h₂(k) = 5 − (k mod 5). Slot 3 is occupied when key 10 is inserted. Which slot is tried next?
- A.
Slot 4
- B.
Slot 1
- C.
Sign up free to see the answer and a step-by-step explanation.