Y
Hacker News
new
|
ask
|
show
|
jobs
by
tetha
60 days ago
Any `return c` for some constant is a valid and correct hash function. It just has a lot of collisions and degenerates hash-maps to terrible performance. That was in fact my first thought when I read "simplest hash functions".