Challenge: Creating Hash Function
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 6
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 5
Challenge: Creating Hash Function
Svep för att visa menyn
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Awesome!
Completion rate improved to 5Avsnitt 2. Kapitel 6
single