Challenge: Creating Hash Function
Завдання
Swipe to start coding
Now you will create a simple hash function:
- Specify
input_string
andhash_size
as arguments of thesimple_mod_hash()
function. - Use the modulo (
%
) operation to create a hash value inside the function.
Note
hash_size
argument determines the number of possible hash values the function can generate, which is used to keep the hash value within a specific range.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 6
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 5
Challenge: Creating Hash Function
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Now you will create a simple hash function:
- Specify
input_string
andhash_size
as arguments of thesimple_mod_hash()
function. - Use the modulo (
%
) operation to create a hash value inside the function.
Note
hash_size
argument determines the number of possible hash values the function can generate, which is used to keep the hash value within a specific range.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Awesome!
Completion rate improved to 5Секція 2. Розділ 6
single