Skip to main contentSkip to solution

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.

h(77)=77 mod 10=7h(77) = 77 \bmod 10 = \boxed{7}

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question