✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Let S be the set of three-letter abbreviations for the months of the year. We might define a hash function f: S → {0, 1, …, 11} in the following way:
f(XYZ) = (ord(X) + ord(Y) + ord(Z)) mod 12,
where ord(X) denotes the integer value of the ASCII code for X. (The ASCII values for a-z are 97-122 and A-Z are 65-90)
Compute the value for the key "Jan"