What kind of data structure is used to resolve collisions in a hash table…

2024

What kind of data structure is used to resolve collisions in a hash table through chaining?

  1. A.

    Queue

  2. B.

    Stack

  3. C.

    LinkedList

  4. D.

    None of the above

Attempted by 320 students.

Show answer & explanation

Correct answer: C

LinkedLists are used in chaining to resolve collisions. Each bucket of the hash table has a linked list. All elements that hash to the same index are stored in the list at that index.

Explore the full course: Cocubes Preparation