- GATE CS
- 2026–27 pattern practice
- Data Structures
- Hashing
- Easy
A hash table of size uses with linear probing. The keys , and are inserted in this order into an empty table. In which slot is stored?
Linear Structures
Pick an option to check your answer.
Answer: C. Solution
- → slot .
- → collision; probe slot → stored at .
- → slots and are full; probe slot → stored at .
Why not the others
- is the home slot, already taken by .
- is taken by .
- skips the free slot ; linear probing takes the first free slot.