Challenge: Creating Hash Function
Opgave
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 alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 6
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Awesome!
Completion rate improved to 5
Challenge: Creating Hash Function
Stryg for at vise menuen
Opgave
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 alt klart?
Tak for dine kommentarer!
Awesome!
Completion rate improved to 5Sektion 2. Kapitel 6
single