4 ms·
Idea: use a hash table with perfect hashing (https://en.wikipedia.org/wiki/Perfect_hash_function https://en.wikipedia.org/wiki/Perfect_hash_function, e.g. libra
by daurnimator 11y ago
Idea: use a hash table with perfect hashing (https://en.wikipedia.org/wiki/Perfect_hash_function https://en.wikipedia.org/wiki/Perfect_hash_function, e.g. library: https://github.com/wahern/phf https://github.com/wahern/phf)