The characters of the string K R P C S N Y T J M are inserted into a hash…

ISRO Scientist/Engineer SC 2017Modified — slightly modified from the official paper; see the solution

The characters of the string K R P C S N Y T J M are inserted into a hash table of size of size 10 using hash function

h(x) = (ord(x) − ord(A) + 1) mod 10

If linear probing is used to resolve collisions, then the following insertion causes collision

  1. A.

    Y

  2. B.

    C

  3. C.

    M

  4. D.

    P

Attempted by 364 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…