# Why Is Everyone on Hook 3? Hash Functions

Pick a recipe that turns a name into a hook number without crowding the hooks: three recipes tried on one coat check, the three things a good one has to do, and the multiply-by-31 recipe your language's own hash codes use.

![Cheat sheet: Why Is Everyone on Hook 3? Hash Functions](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/7cb0b7f701ea48a889a77ea70824c256.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: data structures, Hash Code, Hash Collision, Hash Function, Modulo
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/ds-hash-functions-cheat-sheet
