GATE CS 2026 Set 2 | Question 30
Programming & Data Structures › Advanced Concepts · NAT · 1 mark · Answer: 3
- Question 30Programming & Data Structuresnat1 markThe keys 5, 28, 19, 15, 26, 33, 12, 17, 10 are inserted into a hash table using the hash function . The collisions are resolved by chaining. After all the keys are inserted, the length of the longest chain is __________. (answer in integer)
Answer: 3
Solution
Slots (): . Chains: slot 1 = (length 3), slot 6 = , slot 8 = . Longest chain length .
More GATE PYQ on Advanced Concepts
All GATE CS Programming & Data Structures PYQ →Attempt GATE CS 2026 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →