I have been going through the Reinforcement question in the textbook Data Structures and Algorithms in Java, 6th Edition, and came across this question:
"What would be a good hash code for a vehicle identification number that is a string of numbers and letters of the form “9X9XX99X9XX999999,” where a “9” represents a digit and an “X” represents a letter?"
My initial thought would to make the size of the hash table 100,003 and have it deal with the last 6 digits of the vehicle plate.
Am I right in considering this as a possible answer? Would love any feedback on this. Thanks!