Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Also I suspect that adding together the ascii values of the characters in the key is not necessarily the best hash function.

Still better than using the length of the string as your hash value. Not my proudest moment but sometimes, you want to see the world burn. That and I forgot to do my hw and class was in a few minutes.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: