Computer Science EngineeringVery hardISRO SC (CS)

Keys [47, 90, 61, 44, 17, 67, 89, 45] are hashed into 11 buckets by h(k) = k mod 11 using separate chaining. The length of the longest chain is:

  1. A. 3
  2. B. 4
  3. C. 2
  4. D. 5

Correct answer: A. 3

Bucket counts: [1, 3, 1, 1, 0, 0, 2, 0, 0, 0, 0]; maximum = 3.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic