Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
CS foundations
/
CS foundations
Which rule must a hash-map key implementation preserve?
from CS foundations
intermediate
1 min
Which rule must a hash-map key implementation preserve?
Keys considered equal must produce the same hash value.
Different keys must always produce different hash values.
The hash value alone decides whether two keys are equal.
Check
Ask AI about this kata
Report an error
previous kata
A routine compares every pair among `n` records once. Which time bound describes its domi…
Quiz
next kata
Give the asymptotic time for indexed access to an array element
Fill in
A new version is available
Reload