Computer Science EngineeringHardISRO SC (CS)

Keys [86, 35, 42, 13, 17, 29] 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. 1
  3. C. 2
  4. D. 4

Correct answer: C. 2

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

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

Exams that ask this topic