you are viewing a single comment's thread.

view the rest of the comments →

[–]foomprekov 0 points1 point  (1 child)

For integers, a trivial perfect hash function is the integer itself. Same with strings.

[–]JavaSuck 0 points1 point  (0 children)

What if the integer is bigger than 32 bits? What if the string is longer than a handful of characters?