Comment on Python code to solve xkcd 1313 by Peter NorvigparentComments−gwern12yIf you know everything ahead of time, you could probably just use something like a https://en.wikipedia.org/wiki/Perfect_hash_function
Comments
If you know everything ahead of time, you could probably just use something like a https://en.wikipedia.org/wiki/Perfect_hash_function