The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+11 votes
689 views

Given the following input $(4322, 1334, 1471, 9679, 1989, 6171, 6173, 4199)$ and the hash function $x$ mod $10$, which of the following statements are true?

  1. $9679, 1989, 4199$ hash to the same value

  2. $1471, 6171$ hash to the same value

  3. All elements hash to the same value

  4. Each element hashes to a different value

  1. I only
  2. II only
  3. I and II only
  4. III or IV
asked in DS by Veteran (69k points)
edited by | 689 views

3 Answers

+12 votes
Best answer

option C is correct because the last digit of every digit given is equal in I and II

answered by Veteran (14.3k points)
edited by
+8 votes

This might Help to understand better

answered by (389 points)
+5 votes
Answer C we can simply get it by dividing the keys
answered by Veteran (11.2k points)


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

33,593 questions
40,128 answers
114,021 comments
38,389 users