Question DSA-HASH-0045
MediumKeys 10, 17, 24 and 3 are inserted in that order into a table of size 7 with h(k) = k mod 7 and linear probing. In which slot does 3 end up?
- A.
3
- B.
5
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Hashing question
Keys 10, 17, 24 and 3 are inserted in that order into a table of size 7 with h(k) = k mod 7 and linear probing. In which slot does 3 end up?
3
5
Sign up free to see the answer and a step-by-step explanation.
4
6