3 ms·Just merge all the keys and create a single perfect hash. Packing problem solved. Not NP.by rurban 1y agoJust merge all the keys and create a single perfect hash. Packing problem solved. Not NP.