If the hash function "element % 10" is applied to the following list 'L':
L = [34, 16, 2, 93, 80, 77, 51]
What will be the hash value of element 77?
If the hash function "element % 10" is applied to the following list 'L':
L = [34, 16, 2, 93, 80, 77, 51]
What will be the hash value of element 77?
Solution
✅ Correct Option: 1
The hash function returns the remainder when the element is divided by 10, which is the last digit of the number.
Related questions:
2025: 15 May Shift 2
2026: 20 May Shift 1
2025: 14 May Shift 1
2026: 24 May Shift 1
2025: 30 May Shift 2
2026: 13 May Shift 2