Computer Science · Data Structures and Algorithms
Consider a hash table with 10 slots (indexed 0 to 9). What is the layout of the elements in the hash table after inserting the following sequence: 44, 26, 12, 93, 80, 57, 56, 23, 46, 36? (Use the hash function h(k) = k mod 10 and resolve collisions using linear probing).
- 1Index 0 to 9: 12, 23, 26, 36, 44, 46, 56, 57, 80, 93
- 2Index 0 to 9: 80, 36, 12, 93, 44, 23, 26, 56, 46, 57
- 3Index 0 to 9: 80, 36, 12, 93, 44, 23, 26, 57, 56, 46✓
- 4Index 0 to 9: 80, 46, 12, 93, 44, 23, 26, 57, 56, 36
Correct answer
Index 0 to 9: 80, 36, 12, 93, 44, 23, 26, 57, 56, 46
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Data Structures and Algorithms?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Data Structures and Algorithms