Skip to main content
Commonmark migration
Source Link

Python 3, 89 bytes, 6534 hash collisions##collisions

def H(x):
 v=846811
 for y in x:
  v=(972023*v+330032^ord(y))%2**24
 return v%2**24

All the large magic numbers you see here are fudge constants.

Python 3, 89 bytes, 6534 hash collisions##

def H(x):
 v=846811
 for y in x:
  v=(972023*v+330032^ord(y))%2**24
 return v%2**24

All the large magic numbers you see here are fudge constants.

Python 3, 89 bytes, 6534 hash collisions

def H(x):
 v=846811
 for y in x:
  v=(972023*v+330032^ord(y))%2**24
 return v%2**24

All the large magic numbers you see here are fudge constants.

Source Link
Magenta
  • 1.4k
  • 10
  • 12

Python 3, 89 bytes, 6534 hash collisions##

def H(x):
 v=846811
 for y in x:
  v=(972023*v+330032^ord(y))%2**24
 return v%2**24

All the large magic numbers you see here are fudge constants.